Eclipse for C++ Development?

Discussion in 'Mac Programming' started by Littleodie914, Nov 7, 2007.

  1. macrumors 68000

    Littleodie914

    Joined:
    Jun 9, 2004
    Location:
    Rochester, NY
    #1
    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:

    [​IMG]
     
  2. macrumors member

    Joined:
    Nov 5, 2007
    #2
    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.
     
  3. thread starter macrumors 68000

    Littleodie914

    Joined:
    Jun 9, 2004
    Location:
    Rochester, NY
    #3
    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!
     

Share This Page