Acmlm's Board - I2 Archive - Programming - Trying to learn c++, but it's not going so well...
User | Post |
Timmy Turner
Posts: 5/24 |
Thanks euclid.... that worked |
Euclid
Posts: 101/193 |
you should only need to put #include < iostream> for it to work. (without the space)
At least for gcc anyway. |
Monsty
Posts: 5/6 |
I'm assuming Dev-C++ comes with all of the standard library headers and everything...so my guess is your directories are not set up correctly. Does Dev-C++ have its own IDE? You need to define somewhere for the compiler to look for those header files. I'm pretty sure that's the current problem.
I've never used an IDE-less compiler, so I couldn't help you with developing a makefile or similar required file(or would it just be environment variables?), if that's the case. |
Timmy Turner
Posts: 2/24 |
While trying to learn c++ on bloodsheds dev-c++, and when i type in this:
#include
using namespace std;
int main (int argc, char *argv[]) { cout << "Hello World!" << endl; cout << "Press ENTER to continue..." << endl; cin.get(); return 0; }
It says it can't find iostream.h... What's wrong?
|
|