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/<
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.