更新时间:2021-07-17 02:32:31
要获取64位Ubuntu Server 12.04 LTS来编译gcc 4.8 32位程序,您需要做两个
To get Ubuntu Server 12.04 LTS 64-bit to compile gcc 4.8 32-bit programs, you'll need to do two things.
确保已完全安装所有32位gcc 4.8开发工具:
Make sure all the 32-bit gcc 4.8 development tools are completely installed:
sudo apt-get install lib32gcc-4.8-dev
编译程序使用-m32标志
Compile programs using the -m32 flag
gcc pgm.c -m32 -o pgm