This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 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]

RE: FW: Wide char support on cygwin


The source code is attached. 

Errors got during compilation :

wstreamtest.cpp: In function `int main()':
wstreamtest.cpp:17: error: `wistringstream' undeclared (first use this f

wstreamtest.cpp:17: error: (Each undeclared identifier is reported only
 each function it appears in.)
wstreamtest.cpp:17: error: expected `;' before "in"
wstreamtest.cpp:20: error: `wostream' undeclared (first use this functio
wstreamtest.cpp:20: error: expected `;' before "out"
wstreamtest.cpp:22: error: `out' undeclared (first use this function)
wstreamtest.cpp:28: error: `wostream' has not been declared
wstreamtest.cpp:28: error: `pos_type' undeclared (first use this functio
wstreamtest.cpp:28: error: expected `;' before "pos"
wstreamtest.cpp:34: error: `wcout' undeclared (first use this function)
wstreamtest.cpp:34: error: `in' undeclared (first use this function)
wstreamtest.cpp:37: error: `pos' undeclared (first use this function) 


Thanks and Regards
        Arthi

-----Original Message-----
From: cygwin-xfree-owner@cygwin.com
[mailto:cygwin-xfree-owner@cygwin.com] On Behalf Of Holger Krull
Sent: Friday, 27. April 2007 3:16 PM
To: cygwin-xfree@cygwin.com
Subject: Re: FW: Wide char support on cygwin

Arthi N (RBIN/ECM2) schrieb:

> But I have included the needed header inspite of that I get the error 
> 	!) " error: ISO C++ forbids declaration of `wostream' with no
> type" 
> 	2) " error: `std::wostream' should have been declared inside
> `std' "
> 	3)"  error: `wostream' is neither function nor member function;
> cannot be decl
> ared friend"
> 
> 1)	what could be the problem.

I assume you are using a more restrictive compiler now. What did you use
on unix?
Give the source that produces the error.


> 2) I had downloaded the latest cygwin from the net and installed. Is
> there any other library to be included while installation

None that i know about.

> 3) How do I know which version of STL is getting used in cygwin.

I don't know. I guess it is whatever comes with gcc.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Attachment: wstreamtest.cpp
Description: wstreamtest.cpp

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

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