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

AI Thread Summary
The discussion centers on transitioning from C to C++ and the challenges faced with IDEs, particularly Eclipse and Visual C++. The user initially struggles with Eclipse not recognizing the iostream library, which is attributed to a minimal installation of MinGW where the g++ compiler was missing. Suggestions include checking the environment variables to ensure the path is set correctly for Eclipse. Visual C++ is mentioned as lacking certain features like error/warning highlighting, but it does allow navigation to errors through the output window. The conversation also touches on learning C++, emphasizing that familiarity with C makes the transition easier. Key concepts to focus on include member functions in structures, class inheritance, and function overloading, which are essential for mastering 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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top