Mac Eclipse for C++ Development?

Littleodie914

macrumors 68000
Original poster
Jun 9, 2004
1,813
7
Rochester, NY
Hey guys, for a C++ class I'm taking we work on C++ projects where there are usually 5+ files involved, and I've used Eclipse a lot with Java to help keep projects organized. One thing I really liked when using Eclipse w/ Java was it automatically "compiled" your code and determined where there were errors. (Any of you who have used it know what I mean.)

I downloaded the C++ Dev tools for Eclipse, and I have the C++ perspective and can create C++ projects, but it doesn't do this automatic "error checking" that the Java version does. Is there a preference I need to turn on, or is this feature not yet available for C++ development? Thanks! :D

Edit: Here's a picture of what I'm trying to get to work:

 

gojaromeiginla

macrumors member
Nov 5, 2007
61
0
When I started with C++, I started off with Eclipse. I found it very buggy, and it was very hard to get anything to run. Your better off using Xcode.
 

Littleodie914

macrumors 68000
Original poster
Jun 9, 2004
1,813
7
Rochester, NY
Ah, I finally figured it out. :)

If you right-click on a project, then click on Properties, in the dialog box you choose "C/C++ Build" and click on the Behavior tab. In there, there's a "Build on resource save (Auto build)". Checking this will automatically rebuild your code when you save, showing any new errors.

Hope this helps anybody with a similar problem!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.