c++ - gcc - compile x386 assembly code error -


when use 'gcc -m32 -o stack temp.s' compile x86 assembly code, got errors below:

/usr/bin/ld: cannot find crt1.o: no such file or directory /usr/bin/ld: cannot find crti.o: no such file or directory /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching -lgcc /usr/bin/ld: cannot find -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching -lgcc_s /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find -lc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc.a when searching -lgcc /usr/bin/ld: cannot find -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.9/libgcc_s.so when searching -lgcc_s /usr/bin/ld: cannot find -lgcc_s /usr/bin/ld: cannot find crtn.o: no such file or directory collect2: error: ld returned 1 exit status 

i think it's because of lack of 32-bit lib, dont know how install it... thank you...

i had similar issue , solved follows:

apt-get install gcc-multilib g++-multilib libc6-dev-i386 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -