delorie.com/archives/browse.cgi | search |
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 |
Reply-To: | Cygwin List <cygwin AT cygwin DOT com> |
Message-Id: | <6.1.0.6.0.20041023135340.04d5ed60@pop.prospeed.net> |
X-Sender: | |
Date: | Sat, 23 Oct 2004 14:16:11 -0400 |
To: | "Jamiil_Abdulahii_Alkadir Escalante" <jamiil_abdulahii_alkadir AT hotmail DOT com>, |
cygwin AT cygwin DOT com | |
From: | Larry Hall <lh-no-personal-replies-please AT cygwin DOT com> |
Subject: | Re: wstring, how? |
In-Reply-To: | <BAY23-F18EHt3V5g2oH00005c26@hotmail.com> |
References: | <BAY23-F18EHt3V5g2oH00005c26 AT hotmail DOT com> |
Mime-Version: | 1.0 |
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? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |