문제

I'm trying to compile a 32 bit assembly code(NASM) on my 64 bit Linux, but I can't, I have tried others tutorials about it and I installed ia32-libs...

When I try run it as:

gcc asm1.o -o asm1

i386 of the file input `asm1.o' is incompatible with the output i386:x86-64

And when I try run it as:

gcc -m32 asm1.o -o asm1

/usr/bin/ld: cannot find -lgcc /usr/bin/ld: connot find -lgcc_s collect2: error: ld returned 1 exit status

Thanks for helps.

OBS: Sorry for my english, I'm not from US.

도움이 되었습니까?

해결책

Need to install gcc-multilib.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top