X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 22 Jul 2008 15:49:28 -0600
From: <bernd@prager.ws>
To: cygwin@cygwin.com
Subject: =?UTF-8?Q?CYGWIN=5FNT-=35=2E=31=20=31=2E=37=2E=30=28=30=2E=31=38=35/=35/?=  =?UTF-8?Q?=33=29=20wstring=20undeclared?=
Message-ID: <0302154ffecb7bae3046cafb2aef9ee5@prager.ws>
X-Sender: bernd@prager.ws
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Identified-User: {1020:box307.bluehost.com:pragerws:prager.ws} {sentby:smtp auth 69.89.31.107 authed with bernd+prager.ws}
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Hi,

I thought wstring is now supported.
Following code:

#include <iostream>

using namespace std;

int main() {
        wstring s = L"test";
        wcout << s << endl;
        return EXIT_SUCCESS;

}

fails compilation with:

$ g++ tst1.cpp 
tst1.cpp: In function `int main()':
tst1.cpp:6: error: `wstring' undeclared (first use this function)
tst1.cpp:6: error: (Each undeclared identifier is reported only once for
each function it appears in.)
tst1.cpp:6: error: expected `;' before "s"
tst1.cpp:7: error: `wcout' undeclared (first use this function)
tst1.cpp:7: error: `s' undeclared (first use this function)

Is that a path issue or is wstring still unsupported?

Thanks,
-- Bernd


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

