|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 - 3 | Next > |
|
|
wstring support in GCC 4.1.2 in Cygwin 1.5.25-11Hi 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 |
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256 jadooo wrote: | 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. Cygwin 1.5 is not fully unicode enabled and does not provide wstring; you'll need to wait for 1.7. Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkgt0iEACgkQpiWmPGlmQSNy5ACfS9mZCvjb1hExJpYMiDdTEXIp CVcAn3oBtvmc7BfInJZdRtHjxULse8dJ =OkLx -----END PGP SIGNATURE----- -- 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/ |
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11Thanks a lot for the valuable information.
I have some more question on the same, just to clarrify things a bit more.. What do u mean by full unicode enabled?? Will my code which contains 'wstring' compile? I have to take some decisions based on this, so would like to know how could I confirm this information. Is it there in any Cygwin specification or site link. Thanks & Regards Vipin
|
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11jadooo wrote:
> Thanks a lot for the valuable information. > > I have some more question on the same, just to clarrify things a bit more.. > > What do u mean by full unicode enabled?? Simple. Cygwin 1.5.x doesn't support Unicode. Code in CVS for the next release series (1.7.x) will. If you want to get some early insight, you can check out a snapshot <http://cygwin.com/snapshots/>. This, of course, isn't released code so use at your own risk. If you do try it and have problems, report them here. Anticipating your next question, there is no release date yet for 1.7.x. > Will my code which contains 'wstring' compile? You've answered this question for yourself already, no? -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/ |
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11Hi,
I tried the code from the CVS, but with those changes also the simple 'wstring' program is not compiling. What all I did to test : 1) Have done a fresh Cygwin[1.5] installation. 2) From http://cygwin.com/snapshots/ have downloaded the cygwin-inst-20080407.tar.bz2 file 3) tar -xvjf cygwin-inst-20080407.tar.bz2 4) The out put of the above command are two folders - etc and usr 5) Copied the folder into C:\Cygwin\ , thus overwritting the existing files. 6) Restarted the Cygwin terminal and tried to build the Sample application which again failed to recognize 'wstring'. Please let me know if I am doing anything wrong. With Warm Regards Vipin
|
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11On 2008-05-20 17:16Z, jadooo wrote:
> > I tried the code from the CVS, but with those changes also the simple > 'wstring' program is not compiling. > > What all I did to test : > > 1) Have done a fresh Cygwin[1.5] installation. > 2) From http://cygwin.com/snapshots/ have downloaded the > cygwin-inst-20080407.tar.bz2 file > 3) tar -xvjf cygwin-inst-20080407.tar.bz2 > 4) The out put of the above command are two folders - etc and usr > 5) Copied the folder into C:\Cygwin\ , thus overwritting the existing files. > 6) Restarted the Cygwin terminal and tried to build the Sample application > which again failed to > recognize 'wstring'. It sounds like you have updated the posix 'kernel', but not the compiler. Wouldn't you need to rebuild your gcc-4.1.2's libstdc++ (or at least pass some overriding '-D' options to the compiler)? -- 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/ |
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11jadooo wrote:
> Please let me know if I am doing anything wrong. Yes, you are misunderstanding the nature of the problem. In order to support the wstring class, gcc relies on the platform's libc supporting wide character C99 functions. newlib does not have the necessary support[1] so until that work is contributed, the wstring class cannot be enabled in libstdc++. And even then, you'd have to rebuild libstdc++ which means rebuilding all of gcc. Cygwin 1.7 currently contains support for unicode characters in filenames, but this is a far cry from general wide character string support (e.g. wprintf) so simply upgrading to 1.7 will not do anything. Larry's suggestion that this will start working in 1.7 is premature, unless somebody contributes the necessary newlib improvements before 1.7 is released. Brian [1] For a list of the missing features see http://cygwin.com/ml/cygwin-developers/2008-04/msg00094.html -- 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/ |
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11Thanks a lot for the valuable information.
I am trying to port my application developed in linux to windows, now as it is quite 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
|
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11How about minGW? Did you try that? I have similiar
problem and I will try to see if there is any difference. --- jadooo <vnair@...> 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: > > 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/ |
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11Ya I am trying MinGW now.
But since it is like building on the windows platform, we need to get round with concepts which differ on the posix and the windows system. Currently I am dealing with the Signals, one such problem. In in my linux based code we have used the sigaction() concept which is not supported in MinGW. Now I am bit worried to estimate the time for the complete activity as I will have to make modifications in the code to make porting successful.
|
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11Ya I am trying MinGW now.
But since it is like building on the windows platform, we need to get round with concepts which differ on the posix and the windows system. Currently I am dealing with the Signals, one such problem. In in my linux based code we have used the sigaction() concept which is not supported in MinGW. Now I am bit worried to estimate the time for the complete activity as I will have to make modifications in the code to make porting successful.
|
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11I just come across one article in google about UTF-8 Cygwin
http://www.okisoft.co.jp/esc/utf8-cygwin/ Just wanted to check about this. As per the documentation here it says that the Cygwin it is providing will suport Unicode. Is it worth to go back and try this out.
|
|
|
Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11jadooo wrote:
> I just come across one article in google about UTF-8 Cygwin > > http://www.okisoft.co.jp/esc/utf8-cygwin/ > > Just wanted to check about this. As per the documentation here > it says that the Cygwin it is providing will suport Unicode. > > Is it worth to go back and try this out. You can try it out but it's important to keep in mind 2 things: 1. This is a patch that has not been accepted into CVS. 1.7.x is accomplishing the same thing by going a different path. 2. This patch still only affects cygwin1.dll. There is no newlib patch. So this doesn't get you any closer to your goal than the snapshot does. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/ |
|
|
fate/resolution/location of things like "sys/sockio.h"Hi, I'm trying to build nmap from scratch to track down some security issues. It seems to be choking on this, configure:4180: result: no configure:4208: checking for sys/ioccom.h configure:4216: result: no configure:4104: checking sys/sockio.h usability configure:4121: gcc -c -g -O2 conftest.c>&5 conftest.c:53:24: sys/sockio.h: No such file or directory configure:4127: $? = 1 configure: failed program was: | /* confdefs.h. */ but I can't figure out exactly what the status of "sys/sockio.h" is from the results here: http://www.google.com/search?hl=en&q=site%3Acygwin.com++%22sockio.h%22 Is there a definitive way to fix this? Some posts on non-cygwin sites but nothing seems to get beyond "it didn't build what is wrong?" Thanks. Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency only marchywka@... Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on marchywka@... if no reply here. Thanks. _________________________________________________________________ E-mail for the greater good. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood -- 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/ |
|
|
RE: fate/resolution/location of things like "sys/sockio.h"Mike Marchywka wrote on 22 May 2008 16:03:
> but I can't figure out exactly what the status of "sys/sockio.h" is from > the results here: > > http://www.google.com/search?hl=en&q=site%3Acygwin.com++%22sockio.h%22 Wrong place to look, surely? http://cygwin.com/cgi-bin2/package-grep.cgi?grep=sys%2Fsockio.h > Is there a definitive way to fix this? Fix what exactly? The fact that cygwin doesn't supply or support <sys/sockio.h>? Well, yes, there is a definitive way to fix it: http://cygwin.com/acronyms#PTC cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/ |
|
|
Re: wstring support in GCC 4.1.2 (OS independent)Brian Dessent wrote:
> jadooo wrote: > >> Please let me know if I am doing anything wrong. > > Yes, you are misunderstanding the nature of the problem. > > In order to su |