delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/14/14:24:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 14 Feb 2012 14:24:30 -0500
Message-ID: <CAKbRB+PFx=vjirsCtsW49y6c45w-bz_RuDYEja4BOvA_4h3hDw@mail.gmail.com>
Subject: Question About G++ Library in Cygwin
From: Jia Wu <jwupitt AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1EJOq2i001929

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019