1 Oct
2001
1 Oct
'01
08:38
J.Drews
On Sunday 30 September 2001 06:04 pm, you wrote:
#include <iostream>
int main() { cout << "Hello World\n";
return 0; }
Oops:
gcc -o test test.C
This should be:
g++ -o test test.C
This answer solves the problem on SuSE 7.2 with gcc-2.95.3. But note
that the program is not correct according to the ISO C++ standard and
will not compile with gcc-3.0.1.
Use:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World\n";
return 0;
}
or (for backward compatibility)
#include