GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » linking error
linking error [message #15591] Wed, 23 October 2013 10:03 Go to next message
Karoly Makonyi
Messages: 10
Registered: July 2013
Location: Stockholm
occasional visitor
From: *fysik.su.se
I made a improved version (for my need) of the emc_complete.C macro and I tried to compile it.
I can do it, but when I try to link the code with the
libSttMvdTracking I got a linking error:

/usr/local/src/GSISOFT/PandaRoot/BuildPanda/lib/libSttMvdTracking.so: undefined reference to `PndSecondaryTrackFinder::WriteHistograms()'
/usr/local/src/GSISOFT/PandaRoot/BuildPanda/lib/libSttMvdTracking.so: undefined reference to `PndMixBackgroundEvents::WriteHistograms()'

When I checking the codes actually it looks real:
The header files declare the WriteHistograms() non-virtual functions but there is nothing in the cxx files ...

Was it intended be like this?


Regards,
k.
Re: linking error [message #15621 is a reply to message #15591] Wed, 30 October 2013 16:47 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Hi, I tried the standard emc_complete.C but I got no error.
Could you please attach your modified version?
Re: linking error [message #15629 is a reply to message #15591] Thu, 31 October 2013 17:25 Go to previous messageGo to next message
Karoly Makonyi
Messages: 10
Registered: July 2013
Location: Stockholm
occasional visitor
From: *fysik.su.se
Here is the present status of the code ...
It have to be improved ... I presently using only with the emc ...

One should modify the Makefile to include everything ...

Thanks,
k.

PS: the problem will occur (at least occured to me) at linking time ... the linker will complain that there are functions which are declared in the header file but not implemented.
  • Attachment: simall.C
    (Size: 14.58KB, Downloaded 221 times)
  • Attachment: Makefile
    (Size: 1.35KB, Downloaded 196 times)
Re: linking error [message #15678 is a reply to message #15629] Wed, 06 November 2013 16:53 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
I believe now it is fixed, the two classes were commented out from the main compilation. Could you please check?
Previous Topic: [FIX]
Next Topic: Macro for creating geometry from geometry root file
Goto Forum:
  


Current Time: Fri Apr 19 23:06:46 CEST 2024

Total time taken to generate the page: 0.00699 seconds