public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* wstring support in GCC 4.1.2 in Cygwin 1.5.25-11
@ 2008-05-16 15:58 jadooo
  2008-05-16 18:42 ` Yaakov (Cygwin Ports)
                   ` (2 more replies)
  0 siblings, 3 replies; 43+ messages in thread
From: jadooo @ 2008-05-16 15:58 UTC (permalink / raw)
  To: cygwin


Hi All,
I was trying to compile my code on Cygwin[1.5.25-11] with GCC[4.1.2], 
but I am not able to build with errors on wstring. 
 
I tried to test a simple application which uses wstring, like
 
#include <string>
#include <iostream>
int main( ) 
{
   using namespace std;
  
 const basic_string <wchar_t> s1 ( L"abc" );
   wstring s2 ( L"abc" );   // Uses the typedef for wstring
   if ( s1 == s2 )
      cout << "The strings s1 & s2 are equal." << endl;
   else
      cout << "The strings s1 & s2 are not equal." << endl;
}
 
and on compiling I am getting the following error..
 
-->g++ main.cpp -o main
main.cpp: In function `int main()':
main.cpp:8: error: `wstring' undeclared (first use this function)
main.cpp:8: error: (Each undeclared identifier is reported only once for
each fu
nction it appears in.)
main.cpp:8: error: expected `;' before "s2"
main.cpp:9: error: `s2' undeclared (first use this function)
 
I searched on the net but could not get any thing recent or useful. Some old
forum threads[2005] say that 
it was not supported. 
 
Any advice or pointer will be of great help.
 
Thanks & Regards
Vipin

-- 
View this message in context: http://www.nabble.com/wstring-support-in-GCC-4.1.2-in-Cygwin-1.5.25-11-tp17275355p17275355.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2008-05-30 14:07 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-16 15:58 wstring support in GCC 4.1.2 in Cygwin 1.5.25-11 jadooo
2008-05-16 18:42 ` Yaakov (Cygwin Ports)
2008-05-17 12:00 ` jadooo
2008-05-19  4:47   ` Larry Hall (Cygwin)
2008-05-20 18:00     ` jadooo
2008-05-20 19:31       ` Greg Chicares
2008-05-21  2:02       ` Brian Dessent
2008-05-22 14:32         ` jadooo
2008-05-22 15:03           ` Larry Hall (Cygwin)
2008-05-22 15:15             ` fate/resolution/location of things like "sys/sockio.h" Mike Marchywka
2008-05-22 16:36               ` Dave Korn
2008-05-23  0:08                 ` Mike Marchywka
2008-05-23  0:10                   ` Christopher Faylor
2008-05-26 22:00                     ` Mike Marchywka
2008-05-27  9:12                       ` Brian Dessent
2008-05-27 13:20                         ` Mike Marchywka
2008-05-27 13:57                           ` Mike Marchywka
2008-05-27 14:05                             ` Brian Dessent
2008-05-27 14:49                               ` Mike Marchywka
2008-05-27 17:12                             ` Phil Betts
2008-05-27 17:20                               ` Mike Marchywka
2008-05-28  2:15                                 ` Dave Korn
2008-05-28 15:00                           ` MS or cygwin dll debug tools/ was "sys/sockio.h" etc Mike Marchywka
2008-05-28 15:36                             ` Greg Chicares
2008-05-28 17:05                               ` Brian Dessent
2008-05-28 19:48                                 ` Mike Marchywka
2008-05-28 20:33                                   ` Brian Dessent
2008-05-28 20:49                                     ` Christopher Faylor
2008-05-28 21:00                                       ` Brian Dessent
2008-05-28 21:08                                     ` Mike Marchywka
2008-05-29  1:25                                       ` Brian Dessent
2008-05-30  1:49                                         ` Mike Marchywka
2008-05-30 14:22                                           ` Brian Dessent
2008-05-28 19:39                             ` Spiro Trikaliotis
2008-05-22 19:14         ` wstring support in GCC 4.1.2 (OS independent) Linda Walsh
2008-05-23  9:24           ` Brian Dessent
2008-05-21 11:41 ` wstring support in GCC 4.1.2 in Cygwin 1.5.25-11 jadooo
2008-05-21 22:58   ` Longyu Mei
2008-05-22 10:27     ` jadooo
2008-05-22 21:48   ` Linda Walsh
2008-05-23  3:01     ` Eric Blake
2008-05-23 19:26       ` Linda Walsh
2008-05-23 20:30         ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).