#include <iostream>

Hi, i want to learn to code C++, but right off the bat in the tutorial, i tried copying the code into netbeans but i keep getting an error on #include <iostream> that says it can't include it, I'm sorry if this is really obvious, i just don't get it.
It sounds like your environment isn't set up. You need to check the include and lib paths. Make sure they include the compiler's include and lib directories.
And failing that, ive seen some people saying that they don't have iostream in their library.
If that is the case, google iostream.h, download it and stick it in your library
If that is the case, google iostream.h, download it and stick it in your library
The current header name is <iostream> without the '.h' and if you are missing the header, is likely you are missing the library file with the definitions and perhaps all the standard library
Where can I get the standard library?
Which is your compile?
I just added MinGW for netbeans.
MinGW should be the same as G++ so you can get the GNU library.
Download the sourcecode of the g++ version you have from http://gcc.gnu.org/ and compile the library. -This should take some time-
Reinstalling MinGW with the library from already compiled files would be easier
I did install it with G++
MinGW is G++
All right I'm getting confused
MinGW is G++ for Windows.
Is weird that the installation didn't provide the standard library. Try just reinstalling MinGW and reconfiguring Netbeans.
Should I just uninstall everything and start from scratch?
Yes, You should find a download of Windows installer for MinGW at http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/
So if i download and install netbeans for C++ and the MinGW then it should work fine?
You need to configure NetBeans to recognise MinGW and its library files
How can I do that?
Topic archived. No new replies allowed.