Compile program for 32bit on 64bit Linux OS causes fatal error

后端 未结 4 1766
长发绾君心
长发绾君心 2020-12-04 23:37

Using

gcc -m32 myprog.c

should compile in 32 bit version the file myprog.c.

Unfortunately I get this error:



        
4条回答
  •  情深已故
    2020-12-05 00:17

    You need gcc multilib support. Install the package gcc-multilib. E.g.:

    sudo apt-get install gcc-multilib
    

提交回复
热议问题