#1 Le 05/02/2008, à 18:52
- sifourquier
compiler pour un 32bit sur un 64bit
je voudrait juste savoir comment compiler une application sur mon pc 64 bit pour qu'elle fonctionne sur un proc 32 bit
j'ai tester sa mais sa marche pas
export LD_LIBRARY_PATH=/usr/lib32
export LIBRARY_PATH=/usr/lib32
export LD_BIND_NOW=/usr/lib32
cd '/home/simon/programe maisson/video/fonctione char/'
gcc -m32 -lSDL -g -O3 -o main main.c
il me dit
usr/bin/ld: skipping incompatible /usr/bin/../lib/libSDL.so when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libSDL.a when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL
/usr/bin/ld: skipping incompatible /usr/lib/libSDL.a when searching for -lSDL
/usr/bin/ld: cannot find -lSDL
collect2: ld a retourné 1 code d'état d'exécution
logique que libSDL.so 64bit ne marche pas mais les linge export ne devrait pas résoudre le problème??
si vous avez une idé merci
Hors ligne
#2 Le 09/02/2008, à 12:05
- sifourquier
Re : compiler pour un 32bit sur un 64bit
up
personne ne peut m'aider???
Hors ligne