32 bit so link in 64bit mandriva linux

I have 64 bit Mandriva 2006 OS installed.
I am using 32 bit pre-compiled OCC libraries and use the same
for compiling/building my appln.
While linking it is says incompatible shared libraries found ?
why is it so ?
thanks - PG

Wang Yue's picture

You can try to add ¡°-D_OCC64 -m64¡± to g++ Compiler Options¡£

PG's picture


I need to compile/link with 32 bit libraries only - I do not
want to build a 64 bit appln though I am using 64 bit OS.