This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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?
#include <iostream> using namespace std; ...
Regards mks
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |