Getting compiler errors on Mac

I've installed the latest XCode, have Max OS X 10.7.4, and have tried both Code Blocks and Eclipse Juno, both give me errors when I try to compile a simple Hello World program. When creating a project, when I get to the part where it shows which toolchains I have, it only shows "GNU Autotools Toolchain", maybe this has something to do with it.

Also, these are the errors I get when compiling:
Last edited on
It seems as if you don't have gcc installed - or your IDE can't find it.
Which of the three IDE's you are using does that image come from?

You may just have to direct the IDE to the right location of the gcc installation somewhere in its settings.

For more info on using Xcode with gcc (g++):

Hope that helps.

All the best,

Last edited on
That image was from eclipse after I tried to compile and run a simple HelloWorld program.
Topic archived. No new replies allowed.