This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
g++ error
- From: "Peng Yu" <yupeng_ at hotmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Sat, 28 Jun 2003 09:36:52 -0700
- Subject: g++ error
Hi,
When I tried to compile this file by g++, I got a error.
#include <iostream>
int main(){
cout << "Hello World" << endl;
}
errors are:
test.C: In function `int main()':
test.C:3: `cout' undeclared (first use this function)
test.C:3: (Each undeclared identifier is reported only once for each
function
it appears in.)
test.C:3: `endl' undeclared (first use this function)
Do I need to install some library?
Peng
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/