- Sep 8, 2001
- 2,615
- 0
- 0
Ok newb to C++ here.. I downloaded Cygwin so i could use GCC as my compiler. Here's what i tried to compile..
#include <iostream.h>
int main()
{
cout << "WORK DAMNIT\n";
return 0;
}
Here's what Cygwin tells me...
cortex@void ~
$ gcc test.c
test.c:1:20: iostream: No such file or directory
test.c: In function `main':
test.c:5: `cout' undeclared (first use in this function)
test.c:5: (Each undeclared identifier is reported only once
test.c:5: for each function it appears in.)
What am i doing wrong? TIA
#include <iostream.h>
int main()
{
cout << "WORK DAMNIT\n";
return 0;
}
Here's what Cygwin tells me...
cortex@void ~
$ gcc test.c
test.c:1:20: iostream: No such file or directory
test.c: In function `main':
test.c:5: `cout' undeclared (first use in this function)
test.c:5: (Each undeclared identifier is reported only once
test.c:5: for each function it appears in.)
What am i doing wrong? TIA