Incompatible /usr/local/root/lib/libCore.so

My ROOT installation is 5.24, dating back to June 2009. Could this create a problem when linking with new geant4 (i.e. 10.0) libraries? I’m asking because I get a link error when linking with one of the examples:

[fazel@linux10 ~/g4work/analysis/AnaEx02-build]$ ls -l /usr/local/root/lib/libCore.*
-rw-r–r-- 1 root root 12045 Jun 30 2009 /usr/local/root/lib/libCore.rootmap
-rwxr-xr-x 1 root root 7843796 Jul 6 2009 /usr/local/root/lib/libCore.so

[fazel@linux10 ~/g4work/analysis/AnaEx02-build]$ make
Linking CXX executable AnaEx02
/usr/bin/ld: skipping incompatible /usr/local/root/lib/libCore.so when searching for -lCore
/usr/bin/ld: cannot find -lCore
collect2: ld returned 1 exit status
make[2]: *** [AnaEx02] Error 1
make[1]: *** [CMakeFiles/AnaEx02.dir/all] Error 2
make: *** [all] Error 2

Thanks,
Neil

Usually comes from mixing 32 bit and 64 bit objects and libraries…
you could try adding ‘-m32’ to the geant4 compile and ld flags to force it to 32 bits, or you could compile root 64bit…

[quote=“W.J. Llope”]Usually comes from mixing 32 bit and 64 bit objects and libraries…
you could try adding ‘-m32’ to the geant4 compile and ld flags to force it to 32 bits, or you could compile root 64bit…[/quote]

That could very well be it; I’ll give it a try. Thanks.

Neil