OS X Eclipse C++ Launch Failed - Binary Not Found

前端 未结 15 2195
青春惊慌失措
青春惊慌失措 2020-12-24 07:17

I am quite troubled as this shouldn\'t be causing me such a headache. I\'ve downloaded the most recent Eclipse Indigo and all CDT C++ plugins for MAC OS X 10.7.1/<

15条回答
  •  轮回少年
    2020-12-24 07:53

    You should change the settings for your project to build an executable instead of a dynamic library:

    Invoking: MacOS X C++ Linker g++ -arch i386 -dynamiclib -o "libHelloWorld" ./main.o`

    Go to project properties -> C/C++ Build -> Settings -> Build artifact, and select Executable in the first drop down list.

提交回复
热议问题