Building a 32-bit app in 64-bit Ubuntu

后端 未结 2 1630
终归单人心
终归单人心 2021-01-05 17:18

After hours of googling, I decide to give up and ask you experts. I am trying to build a 32-bit application (xgap if anyone interested) in my 64 Ubuntu 11.10. I added the

2条回答
  •  再見小時候
    2021-01-05 17:47

    You need to use link with -m32 as well.

    gcc -m32 -o xgap xcmds.o utils.o gapgraph.o gaptext.o pty.o popdial.o xgap.o selfile.o   -L/usr/lib32 -lXaw -lXmu -lXt -lXext -lX11  -lSM -lICE
    

    All things considered, I think you should be able to drop the -L/usr/lib32 when using -m32.

提交回复
热议问题