Compile 32bit C-lib on 64 bit

Hegedüs Ervin airween at gmail.com
Sun May 1 16:14:14 EDT 2011


Hello,

this is not a "clear" Python question - I've wrote a module in C,
which uses a 3rd-party lib - it's a closed source, I just get the
.so, .a and a header file.

Looks like it works on 32bit (on my desktop), but it must be run
on 64bit servers.


When I'm compiling it on 64bit, gcc says:

/usr/bin/ld: skipping incompatible /lib32/lib3rdpartyCrypt.so when searching for -l3rdpartyCrypt

There _is_ the .so in /lib32 directory:

ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),
dynamically linked, stripped


What is the correct solution?


thank you:


a.




More information about the Python-list mailing list