You are not logged in.
Hello,
i have arch installed as a 64bit system, i am currently trying (to do my homework) which require me to link a code in c and a piece in assembly,
i have 2 files :
main.c
ass0.s
i assembled ass0 running : (i need it to be 32bit also tried with -f elf (instead of elf32)
nasm -f elf32 ass0.s -o ass0.o
and tried linking both files :
gcc -m32 main.c ass0.o -o ass0.out
and i get
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
i understand it's something to do with my gcc being 64bit, is there any package i need to install ?
i'm pretty much stuck any insights are greatly appreciated..
thanks !
Offline
thanks.. it work now
Offline