g++ on MacOSX doesn't work with -arch ppc64
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to build a Universal binary on MacOSX with g++. However, it doesn't really work. I have tried with this simple dummy code: #include <iostream> using namespace std ; int main () { cout << "Hello" << endl ; } This works fine: % g ++ test . cpp - arch i386 - arch ppc - arch x86_64 - o test % file test test : Mach - O universal binary with 3 architectures test ( for architecture i386 ): Mach - O executable i386 test ( for architecture ppc7400 ): Mach - O executable ppc test ( for architecture x86_64 ): Mach - O 64 - bit