delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/24/04:40:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <417B6A68.3050905@familiehaase.de>
Date: Sun, 24 Oct 2004 10:40:08 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Cygwin List <cygwin AT cygwin DOT com>
CC: Jamiil_Abdulahii_Alkadir Escalante <jamiil_abdulahii_alkadir AT hotmail DOT com>
Subject: Re: wstring, how?
References: <BAY23-F18EHt3V5g2oH00005c26 AT hotmail DOT com> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041023135340 DOT 04d5ed60 AT pop DOT prospeed DOT net> <417ADBA4 DOT 9050005 AT familiehaase DOT de> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20041023203617 DOT 0414f4a8 AT pop DOT prospeed DOT net>
In-Reply-To: <6.1.0.6.0.20041023203617.0414f4a8@pop.prospeed.net>
X-IsSubscribed: yes

Larry Hall wrote:

> At 06:31 PM 10/23/2004, you wrote:
> 
>>Larry Hall wrote:
>>
>>
>>>At 07:44 PM 10/22/2004, you wrote:
>>>
>>>
>>>>#include <string>
>>>>class{
>>>>std::wstring wstr;   //<<== syntax error before ; token
>>>>};
>>>>
>>>>g++ -Wall -g -c program.exe -o filename.cpp
>>>>
>>>>Can someone tell me what I am dong wrong or why I get this error message?
>>>
>>>
>>>Presuming you're using the latest Cygwin gcc/g++ release (3.3.3), take a look at /usr/include/g++-3/string and I think you'll find your answer.
>>>You can add the wstring typedef yourself and then things compile fine, assuming you fix the 'typo' of the missing class name.
>>>Gerrit, do you know why <string> has the wstring typedef commented out?
>>
>>wchar_t and wstring are not in newlib and so they are not in cygwin.
> 
> 
> 
> Yeah, I thought of that but then I grepped through newlib and there seemed
> to be plenty of references to it.  Then I added:
> 
> namespace std {
> typedef std::basic_string <wchar_t> wstring;
> };
> 
> after the '#include <string>' above, fixed the typo to add a class name,
> and things compiled fine for me.  So it seems to me like newlib is not 
> the bottleneck for wide character support.  Or did I miss something?

Hmmm, isn't it exported by cygwin1.dll then?
I cannot find wstring in cygwin.din.


Gerrit
-- 
=^..^=

--
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/

- Raw text -


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