Mail Archives: cygwin/2012/02/14/14:24:57
Hi,
I just installed the latest version of Cygwin, selecting Devel,
Database and Interpreter packages. When I try to compile a very simple
Hello.cpp, I got some problems.
Hello.cpp code:
#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::endl;
}
Error report:
$ gcc hello.cpp
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/postypes.h:42:0,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iosfwd:42,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ios:39,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ostream:40,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:40,
from hello.cpp:2:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:145:11: error:
‘::fgetws’ has not been declared
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:147:11: error:
‘::fputws’ has not been declared
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:151:11: error:
‘::getwc’ has not been declared
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:152:11: error:
‘::getwchar’ has not been declared
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:157:11: error:
‘::putwc’ has not been declared
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:158:11: error:
‘::putwchar’ has not been declared
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/locale_facets.h:43:0,
from
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/basic_ios.h:39,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ios:45,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ostream:40,
from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:40,
from hello.cpp:2:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:44:35:
error: ‘_U’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:45:32:
error: ‘_L’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:46:32:
error: ‘_U’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:46:37:
error: ‘_L’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:47:32:
error: ‘_N’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:48:33:
error: ‘_X’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:48:38:
error: ‘_N’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:49:32:
error: ‘_S’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:32:
error: ‘_P’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:37:
error: ‘_U’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:42:
error: ‘_L’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:47:
error: ‘_N’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:50:52:
error: ‘_B’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:32:
error: ‘_P’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:37:
error: ‘_U’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:42:
error: ‘_L’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:51:47:
error: ‘_N’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:52:32:
error: ‘_C’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:53:32:
error: ‘_P’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:54:32:
error: ‘_U’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:54:37:
error: ‘_L’ was not declared in this scope
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin/bits/ctype_base.h:54:42:
error: ‘_N’ was not declared in this scope
Please tell me what is problem and how should I figure it out! Many thanks!!
Best,
Jia Wu
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -