原因: Snow Leopard的GCC編譯C++文件生成的是64位的可執(zhí)行文件, 而Eclipse目前卻只能識別出32位的可執(zhí)行文件.
解決方法:
Typical, as soon as I post a figure it out for myself! For anyone else who might have the same problem as me:
Go to project Properties, C/C++ Build, Settings then click on Miscellaneous under Mac OS X C++ Linker and put “-arch i386″ in the Linker Flag Box and then Miscellaneous under gcc c++ compiler and put the same: “-arch i386″ in the Other Flags box.
I can now Compile and run my programs in Eclipse again :)
