From: Longyu Mei <lmei007@yahoo.com>
To: jadooo <vnair@linx.co.uk>, cygwin@cygwin.com
Subject: Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11
Date: Wed, 21 May 2008 22:58:00 -0000 [thread overview]
Message-ID: <625347.44301.qm@web33503.mail.mud.yahoo.com> (raw)
In-Reply-To: <17359564.post@talk.nabble.com>
How about minGW? Did you try that? I have similiar
problem and I will try to see if there is any
difference.
--- jadooo <vnair@linx.co.uk> wrote:
>
> Thanks a lot for the valuable information.
>
> I am trying to port my application developed in
> linux to windows, now as
> it is quiet clear that I could not use cygwin, due
> to lack of Unicode
> support,
> is there any other alternative to try out my porting
> activity.
>
> Thanking you all once again for the great help.
>
> Vipin
>
>
>
>
>
> jadooo wrote:
> >
> > 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-tp17275355p17359564.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/
>
>
--
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/
next prev parent reply other threads:[~2008-05-21 20:33 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 15:58 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=625347.44301.qm@web33503.mail.mud.yahoo.com \
--to=lmei007@yahoo.com \
--cc=cygwin@cygwin.com \
--cc=vnair@linx.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).