Hi!
First of all. I didn’t had the problems described below on Linux with gcc3.
I made a few objects similar to the ROOT test example Event.h, Event.cc with the corresponding Makefile. May I have circular dependencies however they didn’t hurt for Linux with gcc3.
Now I have and Intel based Mac and tried to compile my project on this platform with gcc4. I adopted the changed options dynlib stuff etc. carefully.
I can compile each object. I think a dictionary (with verbosity v4) named T…Dict.h and T…Dict.cc was made successfully but the compilation fails with:
error: redefinition of ‘int ROOT::R__dummyintdefault5’
I can provide more info if needed.
Help is very appreciated!
Regards, Arno
[arnobook] ~/HbbAnalyse make
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c TJetLifetime.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c T4tag.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c THJetTagPerformance.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c THFlavour.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c THFlavour2D.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c TFit.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c THWeight.cxx
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c TCMSTreeReader.cxx
Generating dictionary TCMSTreeReaderDict ...
Note: File "TJetLifetime.h" already loaded
Note: File "T4tag.h" already loaded
Note: File "THJetTagPerformance.h" already loaded
Note: File "THFlavour.h" already loaded
Note: File "THFlavour2D.h" already loaded
Note: File "TFit.h" already loaded
Note: File "THWeight.h" already loaded
Note: File "TCMSTreeReader.h" already loaded
... dictionary of TCMSTreeReaderDict done.
c++ -O2 -pipe -Wall -W -Woverloaded-virtual -DAC1Root_standalone -D_REENTRANT -Wno-long-double -I/ROOT/v5.10.00/include -c TCMSTreeReaderDict.cxx
T4tag.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
T4tag.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
T4tag.cxx:7: warning: unused parameter 'TagFileName'
T4tag.cxx:7: warning: unused parameter 'TagFileName'
THJetTagPerformance.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
THJetTagPerformance.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
THFlavour.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
THFlavour.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
THFlavour2D.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
THFlavour2D.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
TFit.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
TFit.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
THWeight.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
THWeight.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
TCMSTreeReader.cxx:5: error: redefinition of 'int ROOT::R__dummyintdefault5'
TJetLifetime.cxx:5: error: 'int ROOT::R__dummyintdefault5' previously declared here
TCMSTreeReader.cxx:5: error: redefinition of 'class ROOT::R__dummyintdefault5_c'
TJetLifetime.cxx:5: error: previous definition of 'class ROOT::R__dummyintdefault5_c'
make: *** [TCMSTreeReaderDict.o] Error 1
[arnobook] ~/HbbAnalyse
TCMSTreeReaderLinkDef.h (419 Bytes)