问题
My Linux Server information is:
[root@centos nan]# uname -a
Linux centos 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
By default, the gcc will generate the 64-bit executable file, so I use the "-m32" flags to build 32-bit executable file.
After running the following command:
[root@centos nan]# gcc -m32 -o a a.c
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
So how to build 32-bit executable file in 64-bit Linux?
来源:https://stackoverflow.com/questions/21724540/while-building-32-bit-executable-file-in-64-bit-linux-i-get-crt1-o-no-such-file