Link fails on lxplus

Recently, I logged on the lxplus machine having redhat 3.4.6 and gcc version 3.4.6. The version of ROOT is
/afs/cern.ch/cms/sw/slc4_ia32_gcc345/lcg/root/5.14.00e-CMS1/
My Makefiles all fail in the link on this machine.
The message I get is:
/usr/bin/ld: skipping incompatible /afs/cern.ch/cms/sw/slc4_ia32_gcc345/lcg/root/5.14.00e-CMS1//lib/libCore.so when searching for -lCore
/usr/bin/ld: cannot find -lCore
collect2: ld returned 1 exit status
gmake: *** [TwoPad] Error 1
I join an example of Makefile which fails
Thanks for your help
Makefile.txt (3.53 KB)

Could you try with:
/afs/cern.ch/sw/lcg/external/root/5.14.00f/slc4_ia32_gcc34/root
instead of the CMS version. The patch release 5.14.0of contains a fix when
the library has been compiled with -m32 and you are compiling on a 64 bit node.

Rene

René,
Your diagnostic is correct!
As I have to try to learn CMSSW, I am linked to this version of ROOT compiled in 32 bits mode. So I have tried to compile my code also in 32 bit mode by adding -m32 in the CXXFLAGS and also in the LDFLAGS. And it works!
Thanks a lot!