C++ IDE - Eclipse vs. Visual C++

  • Context: C/C++ 
  • Thread starter Thread starter rafehi
  • Start date Start date
  • Tags Tags
    C++ Eclipse Visual
Click For Summary

Discussion Overview

The discussion revolves around the challenges of using different Integrated Development Environments (IDEs) for C++ programming, specifically comparing Eclipse and Visual C++. Participants share their experiences with setup issues, features, and usability of these IDEs.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant encountered issues with Eclipse not finding the iostream header, suggesting a potential path configuration problem with minGW.
  • Another participant noted that Visual C++ does not highlight errors and warnings in the same way as Eclipse, but it allows navigation to errors through the output window.
  • A later reply mentioned a solution to the Eclipse issue, indicating that a minimal installation of minGW was the cause, specifically the absence of the g++ compiler.
  • One participant shared their preference for Netbeans over Eclipse for Java development, citing a better GUI builder, while also providing insights on transitioning from C to C++ and key concepts to focus on.

Areas of Agreement / Disagreement

Participants express differing experiences and preferences regarding IDE features and usability. There is no consensus on which IDE is superior, and the discussion remains unresolved regarding the best practices for setting up these environments.

Contextual Notes

Limitations include potential missing configurations in IDE setups, varying user experiences with different versions of IDEs, and the subjective nature of feature preferences.

Who May Find This Useful

Individuals learning C++ who are considering different IDEs, as well as those troubleshooting setup issues with Eclipse or Visual C++.

rafehi
Messages
48
Reaction score
1
I've become fairly proficient in C (relatively speaking) and want to start learning C++. However, I can't for the life of me get it working with Eclipse. I keep getting errors saying it can't find iostream, even though minGW works perfectly when compiling C.

My brother recommended Visual C++ 08, so I downloaded it but it's lacking some features that I've come to love in Eclipse. It doesn't highlight warnings/errors nor does it have a sidebar listing where all the errors are. It also doesn't run the program right in the console but I can live without that.

If anyone knows a way of how to get Visual C++ to highlight errors/warnings (couldn't find it in options - any plugins that would do so?), it would be greatly appreciated. Otherwise, does anyone have any idea why Eclipse won't compile C++ code?
 
Technology news on Phys.org
I've never used Eclipse, but if it's not finding iostream, then you probably don't have your path set correctly. Maybe check to see what minGW uses for it's path and check to see what environment variable(s) Eclipse is looking for to define the path and make sure they're the same?

As far as I know, MSVC++ won't highlight errors and warnings the way that you're looking for. It does take you to the warning/error if you double click on it in the output window, however, which is usually enough for me.

What platform are you on?

-Kerry
 
KLoux said:
It does take you to the warning/error if you double click on it in the output window

You can also visit all warnings/errors pressing F4.
 
Thanks for the reply but I got it working a while ago. It turned out I only had a minimal installation of minGW and that the g++ compiler wasn't installed.
 
I used eclipse a while, and have used Visual Studio since the first release. My work requires that I still use Visual Studio, but I've recently started using Netbeans wherever I can (mainly when writing java) because Netbeans has a far better GUI builder than Eclipse. As for learning C++, it should be a cinch since you know C. Start with one of those web pages showing what's changed in order to give yourself an idea of it, but don't dwell on everything in the list. The biggest change, and all you need to know for the first bit of your C++ career, is that you now have member functions in your structures as well as member variables, you now call structs "classes", and you can make a new class from an existing class through inheritance. Then the next thing to take a look at is function overloading. KNowing those things is 80% of working with C++. All the template stuff, vtables, operator overloading , etc. you can wait on until you become familiar with these main C++-isms I list here.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
12K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K