Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <417ADBA4.9050005@familiehaase.de>
Date: Sun, 24 Oct 2004 00:31:00 +0200
From: "Gerrit P. Haase" <gp@familiehaase.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@cygwin.com>
CC: Jamiil_Abdulahii_Alkadir Escalante <jamiil_abdulahii_alkadir@hotmail.com>
Subject: Re: wstring, how?
References: <BAY23-F18EHt3V5g2oH00005c26@hotmail.com> <6.1.0.6.0.20041023135340.04d5ed60@pop.prospeed.net>
In-Reply-To: <6.1.0.6.0.20041023135340.04d5ed60@pop.prospeed.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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.


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/

