Force gcc to compile 32 bit programs on 64 bit platform

后端 未结 3 1651
死守一世寂寞
死守一世寂寞 2020-12-04 13:24

I\'ve got a proprietary program that I\'m trying to use on a 64 bit system.

When I launch the setup it works ok, but after it tries to update itself and compile som

3条回答
  •  孤街浪徒
    2020-12-04 13:50

    You may get a 32-bit binary by applying Alan Pearce's method, but you may also get errors as follows:

    fatal error: bits/predefs.h: No such file or directory
    

    If this is the case and if you have apt-get, just install gcc-multilib

    sudo apt-get install gcc-multilib 
    

提交回复
热议问题