|
From: Matthews <dem...@uw...> - 2003-01-08 13:11:07
|
I've been trying to teach myself c++ recently, so I started out with this
basic program.
#include <iostream>
#include <cstdlib>
int main()
{
using namespace std;
cout << "Hello.\n";
cout << "Press ENTER to continue.";
getchar();
return 0;
}
I attempted to compile this in Dev-C++ 4.9.7.0, which I downloaded with
gcc3.2 packaged along with it. 172 errors are given, which all seem to be
based off of a missing "c++config.h" which is included from iostream. So,
I try to find the header file. The one I get is faulty, so I abandon it.
Reinstalling doesn't put it in, I tried twice. In a last-ditch effort, I
reinstall Dev-C++ 4.9.5.0 which I downloaded packaged with gcc2.89 (or
whatever the one before 3.2 was.) Compiling the same program (except with
changing the <iostream> to <iostream.h> and also including <stdio.h>) works
perfectly. It appears as though I'll be doing my c++ coding in 4.9.5.0 for
now, but can anyone help me figure out the reason for this?
|