逛奔的蜗牛

我不聪明,但我会很努力

   ::  :: 新随笔 ::  ::  :: 管理 ::
原因: 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 :)

posted on 2010-01-24 08:31 逛奔的蜗牛 阅读(498) 评论(0)  编辑 收藏 引用 所属分类: JavaC/C++

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理