Bug #430

Numerous linking errors with NemoMath 0.0.2

Added by Anonymous almost 13 years ago. Updated almost 13 years ago.

Status:ResolvedStart date:07/20/2011
Priority:HighDue date:
Assignee:M. Rolf% Done:

100%

Category:-
Target version:NemoMath 0.1

Description

When building CCA with NemoMath 0.0.2 I get numerous linking errors:

Linking CXX shared library ../build/libCCA.so
CMakeFiles/CCA.dir/cca/nodes/Beat.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/nodes/MCSP.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/nodes/SCMP.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/nodes/Collector.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/nodes/Splitter.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/nodes/Junction.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/nodes/debug/RandomNumberGenerator.cpp.o: In function `nemo::dim(unsigned int)':
/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/dto/DataTransferObject.cpp.o: In function `nemo::dim(unsigned int)':
/usr/include/c++/4.4/bits/ios_base.h:634: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/dto/Task.cpp.o: In function `nemo::dim(unsigned int)':
/usr/include/c++/4.4/bits/ios_base.h:634: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
CMakeFiles/CCA.dir/cca/dto/debug/DebugDTO.cpp.o: In function `nemo::dim(unsigned int)':
/usr/include/c++/4.4/bits/ios_base.h:634: multiple definition of `nemo::dim(unsigned int)'
CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o:/vol/amarsi/trunk/share/RSC/../../include/NemoMath/Vector.h:29: first defined here
collect2: ld returned 1 exit status
make[2]: [build/libCCA.so.0.1.0] Error 1
make[1]: [src/CMakeFiles/CCA.dir/all] Error 2
make: [all] Error 2

Linker command seems to be fine though, can`t see the error there:

cd /homes/anordman/dev/amarsi/CCA/build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/CCA.dir/link.txt --verbose=1                                                                                                                         
/usr/bin/c++ -fPIC -g -shared -Wl,-soname,libCCA.so.0.1.0 -o ../build/libCCA.so.0.1.0 CMakeFiles/CCA.dir/cca/nodes/CCANode.cpp.o CMakeFiles/CCA.dir/cca/nodes/Beat.cpp.o CMakeFiles/CCA.dir/cca/nodes/MCSP.cpp.o CMakeFiles/CCA.dir/cca/nodes/SCMP.cpp.o CMakeFiles/CCA.dir/cca/nodes/Collector.cpp.o CMakeFiles/CCA.dir/cca/nodes/Splitter.cpp.o CMakeFiles/CCA.dir/cca/nodes/Junction.cpp.o CMakeFiles/CCA.dir/cca/nodes/debug/RandomNumberGenerator.cpp.o CMakeFiles/CCA.dir/cca/dto/DataTransferObject.cpp.o CMakeFiles/CCA.dir/cca/dto/Status.cpp.o CMakeFiles/CCA.dir/cca/dto/Task.cpp.o CMakeFiles/CCA.dir/cca/dto/debug/DebugDTO.cpp.o /vol/amarsi/trunk/share/RSC/../../lib/librsc.so -Wl,-rpath,/vol/amarsi/trunk/share/RSC/../../lib:
CMakeFiles/CCA.dir/cca/nodes/Beat.cpp.o: In function `nemo::dim(unsigned int)':

Any idea?

History

#1 Updated by Anonymous almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed by mrolf in Revision r39 by declaring dim as static in source:trunk/nemomath/src/nemo/Vector.h.

#2 Updated by M. Rolf almost 13 years ago

  • Target version set to NemoMath 0.1

Also available in: Atom PDF