Created
May 1, 2014 20:56
-
-
Save moble/d6b3b5db911a2ca758f5 to your computer and use it in GitHub Desktop.
Crazy `multiple definition` error at link time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -pthread -shared build/temp.linux-x86_64-2.7/Quaternions/Quaternions.o build/temp.linux-x86_64-2.7/Quaternions/IntegrateAngularVelocity.o build/temp.linux-x86_64-2.7/Quaternions/Utilities.o build/temp.linux-x86_64-2.7/PostNewtonian/C++/PNEvolution.o build/temp.linux-x86_64-2.7/PostNewtonian/C++/PNEvolution_Q.o build/temp.linux-x86_64-2.7/PostNewtonian/C++/PNWaveformModes.o build/temp.linux-x86_64-2.7/SphericalFunctions/Combinatorics.o build/temp.linux-x86_64-2.7/SphericalFunctions/WignerDMatrices.o build/temp.linux-x86_64-2.7/SphericalFunctions/SWSHs.o build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o build/temp.linux-x86_64-2.7/Utilities.o build/temp.linux-x86_64-2.7/Waveforms.o build/temp.linux-x86_64-2.7/PNWaveforms.o build/temp.linux-x86_64-2.7/Scri.o build/temp.linux-x86_64-2.7/SWIG/GWFrames_wrap.o -Lspinsfast/lib -L/usr/local/gsl/1.16/lib -L/usr/local/fftw3-3.2.2/lib -lgsl -lgslcblas -lfftw3 -lspinsfast -o build/lib.linux-x86_64-2.7/_GWFrames.so -fPIC | |
build/temp.linux-x86_64-2.7/Waveforms.o: In function `~vector': | |
GWFrames/Code/Waveforms.cpp:4978: multiple definition of `SpacetimeAlgebra::I3' | |
build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o:/usr/include/pthread.h:1112: first defined here | |
build/temp.linux-x86_64-2.7/Waveforms.o: In function `~vector': | |
GWFrames/Code/Waveforms.cpp:4978: multiple definition of `SpacetimeAlgebra::psI' | |
build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o:/usr/include/pthread.h:1112: first defined here | |
build/temp.linux-x86_64-2.7/Waveforms.o: In function `~vector': | |
GWFrames/Code/Waveforms.cpp:4978: multiple definition of `SpacetimeAlgebra::gamma_3' | |
build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o:/usr/include/pthread.h:1112: first defined here | |
build/temp.linux-x86_64-2.7/Waveforms.o: In function `std::_Vector_base<double, std::allocator<double> >::_M_deallocate(double*, unsigned long)': | |
/usr/local/gcc-4.6.1/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/bits/stl_vector.h:155: multiple definition of `SpacetimeAlgebra::gamma_2' | |
build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o:GWFrames/Code/SpacetimeAlgebra/SpacetimeAlgebra.cpp:85: first defined here | |
build/temp.linux-x86_64-2.7/Waveforms.o: In function `std::_Vector_base<double, std::allocator<double> >::_M_deallocate(double*, unsigned long)': | |
/usr/local/gcc-4.6.1/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/bits/stl_vector.h:155: multiple definition of `SpacetimeAlgebra::gamma_1' | |
build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o:GWFrames/Code/SpacetimeAlgebra/SpacetimeAlgebra.cpp:85: first defined here | |
build/temp.linux-x86_64-2.7/Waveforms.o: In function `std::_Vector_base<double, std::allocator<double> >::_M_deallocate(double*, unsigned long)': | |
/usr/local/gcc-4.6.1/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../../../../include/c++/4.6.1/bits/stl_vector.h:155: multiple definition of `SpacetimeAlgebra::gamma_0' | |
build/temp.linux-x86_64-2.7/SpacetimeAlgebra/SpacetimeAlgebra.o:GWFrames/Code/SpacetimeAlgebra/SpacetimeAlgebra.cpp:85: first defined here | |
collect2: ld returned 1 exit status | |
error: command 'g++' failed with exit status 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment