Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Finding C++ errors on the fly

  • 31-01-2008 05:12AM
    #1
    Registered Users, Registered Users 2 Posts: 2,481 ✭✭✭


    Hi,
    I'm about to start some work using c++, having mainly worked with Java before. Eclipse's Java editor has an amazingly useful feature which points your compile-time errors out as you go (for example, duplicate local variables or leaving out semicolons).
    Programming in c++ kind of irritates me because I have to compile it every time to find any errors.
    Does anyone know of a c++ IDE which offers a similar feature? I'm an impoverished student so an open-source or freeware project would be very helpful.

    Edit: I tried google, but I couldn't find much. I don't even know what this feature is called, so it's not easy to find any help


Comments

  • Registered Users, Registered Users 2 Posts: 413 ✭✭ianhobo


    You like eclipse and its features so much?
    why change? :)
    Download the CDT plugin
    Its a c/c++ plugin for writing c and c++ in eclipse.
    It uses gcc compiler, which you may need to get desperately, I can't remember.
    But all the required info should be at the end of the link :)
    It's pretty good


  • Closed Accounts Posts: 461 ✭✭markf909


    Due to very difficult nature of the C++ syntax, the types of incremental compilers that are used in IDE's like Eclipse and VS are just not out there.

    The syntax is almost impossible to parse without recourse to type lookup and given the fact the forward declaration is possible, only partial type info may be available and hence the parse cannot be completed.

    I know VS has some features but they rely on full class definitions being available.

    If any IDE is using this then those fancy features may be available but i'm not aware of any free ones.

    From a free software point, the Eclipse C++ plugin may be the best available


  • Registered Users, Registered Users 2 Posts: 2,481 ✭✭✭Fremen


    Cheers for the advice.
    Maybe I'll stick to what I have, then.


Advertisement