Home » PANDA » PandaRoot » Bugs, Fixes, Releases » CMake Problem Thread
Re: CMake Problem Thread [message #4768 is a reply to message #4308] |
Tue, 31 July 2007 17:13 |
Florian Nebel
Messages: 10 Registered: July 2007 Location: TU Munich
|
occasional visitor |
From: *e12.physik.tu-muenchen.de
|
|
Hi guys,
I have a funny c-make linker error. Actually I have a lot of them, therefore I limit myself to the posting of one, representative example:
CMakeFiles/recotasks.dir/demo/ClusterAnalysisTask.o(.data+0x28):/home/kn ucl/FAIRroot/cbmsoft/tools/root/include/TObjArray.h:55: multiple definition of `n'
CMakeFiles/recotasks.dir/demo/PrintTask.o(.data+0x28):/home/knucl/FAIRro ot/cbmsoft/tools/root/include/TObjArray.h:55: first defined here
During the linking process I get about 50 errors of this type which seem rather contradictory to myself. How can the Linker at line 55 know, that "n" has multiple definitions if it is defined at line 55 for the first time? And why does the compiler not complain about this issue. All 50 errors have this contradictory statement in common. Just the header files, lines and variables differ.
I am actually compiling the same code as I used to compile previously with automake - without the funny linker errors. Therefore I figure maybe it is a c-make problem, and belongs here.
Maybe the problem is trivial, but it should be easy to solve in this case.
Thanks for your help!
|
|
|
Goto Forum:
Current Time: Sun Nov 24 01:27:06 CET 2024
Total time taken to generate the page: 0.00745 seconds
|