K
knilges
I am trying to build a Hello World program in C++. I am using the c++ or
g++ complier in cygwin. My mangled code looks like this,
#include <iostream>
int main ()
{
cout << "Hello World";
return;
}
It looks like my example but it isn't working.
the compiler for g++ tells me the following:
hellotest.cpp: In function `int main()':
hellotest.cpp:5: error: `cout' undeclared (first use this function)
hellotest.cpp:5: error: (Each undeclared identifier is reported only once
for each function it appears in.)
hellotest.cpp:6: error: return-statement with no value, in function
returning 'int'
When I run it with an older complier Borland 4.5 it tells me that it can't
read the input file helloworld.rc.
What am I doing wrong?
g++ complier in cygwin. My mangled code looks like this,
#include <iostream>
int main ()
{
cout << "Hello World";
return;
}
It looks like my example but it isn't working.
the compiler for g++ tells me the following:
hellotest.cpp: In function `int main()':
hellotest.cpp:5: error: `cout' undeclared (first use this function)
hellotest.cpp:5: error: (Each undeclared identifier is reported only once
for each function it appears in.)
hellotest.cpp:6: error: return-statement with no value, in function
returning 'int'
When I run it with an older complier Borland 4.5 it tells me that it can't
read the input file helloworld.rc.
What am I doing wrong?