This is the mail archive of the
cygwin
mailing list for the Cygwin project.
CYGWIN_NT-5.1 1.7.0(0.185/5/ 3) wstring undeclared
- From: <bernd at prager dot ws>
- To: cygwin at cygwin dot com
- Date: Tue, 22 Jul 2008 15:49:28 -0600
- Subject: CYGWIN_NT-5.1 1.7.0(0.185/5/ 3) wstring undeclared
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/