Mac OSX dylib compile errors

Hello all,

I am trying to compile some ROOT classes into an external GEANT4 executable. I added the standard root-config --cflags to CPPFLAGS and root-config --glibs to LDFLAGS. The compiling works fine, but when the it gets to the linking step, it spews out a whole gob of warning messages to the tune of

symbol TMatrixTBase::IsValid() constused from dynamic library /usr/local/root/lib/libMatrix.dylib(single module) not from earlier dynamic library usrlocalroot/lib/libHist.dylib(single module)

symbol __ZNK12TMatrixTBaseIdE7IsValidEv.eh used from dynamic library /usr/local/root/lib/libMatrix.dylib(single module) not from earlier dynamic library usrlocalroot/lib/libHist.dylib(single module)

Overall things still work, but having screens filled with warnings is still rather disconcerting. Any ideas?

Thanks!

It looks like you have a mismatch in your DYLD_LIBRARY_PATH or/and PATH. You are mixing code from different ROOT libs.

Rene