原因: Snow Leopard的GCC编译C++文件生成的是64位的可执行文件, 而Eclipse目前却只能识别出32位的可执行文件.
解决方法:
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 :)