/usr/bin/ld: i386 architecture of input file `tabio.o' is incompatible with i386:x86-64 output
Bonsoir,
Je suis débutant en C, je travail sous linux (Ubuntu) x64 et j'essaye de compiler un fichier tri.c en utilisant tabio.o et tabio.h fournis par mon professeur.
J'utilise le makefile suivant:
Code:
1 2 3 4 5 6
|
tri: tri.o tabio.o
gcc -Wall tri.o tabio.o -o tri
tri.o: tri.c tabio.h
gcc -Wall -c tri.c |
mais quand je tape make dans le terminal j'ai l'erreur suivante:
Code:
/usr/bin/ld: i386 architecture of input file `tabio.o' is incompatible with i386:x86-64 output
J'ai cru comprendre que tabio.o est compilé en 32bit alors que j'ai un 64bit.
Si mon interprétation est correct comment faire pour compiler mon programme ?
Faut il que j'installe quelque chose ?
J'ajoute que je n'est pas tabio.c.
Merci infiniment.