RE: FW: Wide char support on cygwin

2007-04-30 Thread Phil Betts
Arthi N (RBIN/ECM2) wrote on Friday, April 27, 2007 10:28 AM::

 Thank you for the reply, from this reply, I shall concentrate more on
 cygwin.
 
 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.
 
 2) I had downloaded the latest cygwin from the net and installed. Is
 there any other library to be included while installation
 
 3) How do I know which version of STL is getting used in cygwin.
 
 Thanks and Regards
 Arthi

This is off topic for this list as it has nothing to do with X, you 
should ask again on the main cygwin list.

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



RE: FW: Wide char support on cygwin

2007-04-30 Thread Arthi N (RBIN/ECM2)
Hello ,

our's is a motif application that needs to be compiled on
cygwin. But since the display uses wide char, we are facing this
problem. Anyway, you think I will get some positive answers in eh other
group, I shall try. 


Thanks and Regards
Arthi

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phil Betts
Sent: Monday, 30. April 2007 6:42 PM
To: cygwin-xfree@cygwin.com
Subject: RE: FW: Wide char support on cygwin

Arthi N (RBIN/ECM2) wrote on Friday, April 27, 2007 10:28 AM::

 Thank you for the reply, from this reply, I shall concentrate more on
 cygwin.
 
 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.
 
 2) I had downloaded the latest cygwin from the net and installed. Is
 there any other library to be included while installation
 
 3) How do I know which version of STL is getting used in cygwin.
 
 Thanks and Regards
 Arthi

This is off topic for this list as it has nothing to do with X, you 
should ask again on the main cygwin list.

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


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



RE: FW: Wide char support on cygwin

2007-04-27 Thread Arthi N (RBIN/ECM2)
Thank you for the reply, from this reply, I shall concentrate more on
cygwin.  

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.

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

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

Thanks and Regards
Arthi

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Holger Krull
Sent: Thursday, 26. April 2007 9:08 PM
To: cygwin-xfree@cygwin.com
Subject: Re: FW: Wide char support on cygwin

Arthi N (RBIN/ECM2) schrieb:
 Is MINGW32 different from cygwin?

Yes. If you use mingw you are not using the cygwin dlls at all.
Maybe you should read the descriptions of both projects to decide which
 you want to use. If you want to port software from unix i think using
cygwin is easier (that means don't use -mnocygwin)

 Since we are not used to this
 environment I am not that familiar with all this.

 If I want to compile and link an application that has wchar and
wostream
 operations what should I do?

Include the needed header files. There should be no problem as both are
standard C++ Library functions if i remember right.


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


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



Re: FW: Wide char support on cygwin

2007-04-27 Thread Holger Krull
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/



RE: FW: Wide char support on cygwin

2007-04-27 Thread Arthi N (RBIN/ECM2)
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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/



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/

RE: FW: Wide char support on cygwin

2007-04-27 Thread Arthi N (RBIN/ECM2)
On unix we use Workshop6U2p1 for compilation.  


Thanks and Regards
Arthi

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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/


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



Re: FW: Wide char support on cygwin

2007-04-27 Thread Holger Krull
Arthi N (RBIN/ECM2) schrieb:

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

I get the same. Very weird.

Looks as if porting from Sun isn't as easy as suspected.
There is entry in the cygwin mailing list that mentions problems:
http://cygwin.com/ml/cygwin/2005-05/msg01294.html
If this hasn't been resolved wide character IO will fail on cygwin.




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



Re: FW: Wide char support on cygwin

2007-04-26 Thread Holger Krull
Arthi N (RBIN/ECM2) schrieb:
 Hello All,
   
   Using -mnocygwin I could compile wstring , but wostream
 functions and wcswcs functions are not compiling on cygwin .

If you are using -mnocygwin you are not compiling a cygwin application
any more. Instead it is MINGW32.


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



RE: FW: Wide char support on cygwin

2007-04-26 Thread Arthi N (RBIN/ECM2)
Is MINGW32 different from cygwin? Since we are not used to this
environment I am not that familiar with all this.

If I want to compile and link an application that has wchar and wostream
operations what should I do?

Arthi
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Holger Krull
Sent: Thursday, 26. April 2007 2:31 PM
To: cygwin-xfree@cygwin.com
Subject: Re: FW: Wide char support on cygwin

Arthi N (RBIN/ECM2) schrieb:
 Hello All,
   
   Using -mnocygwin I could compile wstring , but wostream
 functions and wcswcs functions are not compiling on cygwin .

If you are using -mnocygwin you are not compiling a cygwin application
any more. Instead it is MINGW32.


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


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