m32 on 64 bit MacOs Lion

I'm trying to link two nasm 32 bit objects on a 64 bit intel Mac(Lion).

Used gcc -m32 and it is not working. I think It might be because I do not have the libraries installed. gcc-multilib. Do not know how to install them on Mac.

My gcc version: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

I just want it to work. Any suggestions would be useful, thanks!


On OS X, you don't use the -m switch. Instead, you use -arch . In this case: -arch i386 .

链接地址: http://www.djcxy.com/p/85882.html

上一篇: 如何在mac osx 10.8.2上更改默认编译器

下一篇: m32在64位MacOs Lion上