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

后端 未结 4 1768
长发绾君心
长发绾君心 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:18

    I encountered to this same problem. when I was trying to build 32 bit so file while i'm in 64 bit ubuntu version.

    you can build by switching your lib version into 64 bit in netbeans (-> project properties -> C compiler -> additional options) set to

    -shared -m64
    

提交回复
热议问题