64位ubuntu编译32位程序


  最近在64位ubuntu上开发,需要编译32位程序,需要安装这两个包,然后在编译器参数加上-m32。不放心的话可以用ldd或file查看一下是否生成了对应位数的程序。

$ apt-get install build-essential module-assistant  
$ apt-get install gcc-multilib g++-multilib  
原文地址:https://www.cnblogs.com/doutu/p/5359605.html