www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <24207403.post@talk.nabble.com> |
Date: | Thu, 25 Jun 2009 10:10:52 -0700 (PDT) |
From: | Match Point <qihongwang AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | How to build gcc to support wchar_t and wstring on Cygwin |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 |
Hi, wstring is not supported on my Cygwin 1.5.25. When I declare a wstring variable my g++ 3.4.4 complains wstring is undeclared. After reading some posted message I figured out wstring is not supported on Cygwin 1.5 or even 1.7. To fix this I have to rebuild entire gcc. So I downloaded gcc 4.4.0 and built it on my Cygwin. I didn't setup -- enable-wchar_t for libstdc++, because the default value is enabled. I didn't have any configure options. The build was successful. But wstring still could not pass the compilation of g++ 4.4.0. I checked libstdc++ head file ../c++/4.4.0/i686-pc-cygwin/bits/c++config.h, _GLIBCXX_USE_WCHAR_T is still not defined. This leads to no "typedef basic_string<wchar_t> wstring;" in stringfwd.h. In my c++config.h on my Linux machine with gcc 4.1.2, _GLIBCXX_USE_WCHAR_T is defined. So I don't have wstring support problem on Linux. My question now are 1. Is it possible to have Cygwin 1.5 or 1.7 to support wstring? 2. If it's possible how to build entire gcc or just libstdc++ if that works. Seems like Mingw works. But I can't use that. My program have to run on both Cygwin and Linux. I prefer the formal approach instead of hacker one. I have a big program which depends on other big libraries. Those libraries are also needed to compile. Best regards, Qihong Wang -- View this message in context: http://www.nabble.com/How-to-build-gcc-to-support-wchar_t-and-wstring-on-Cygwin-tp24207403p24207403.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |