This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]