Re: wstring support in GCC 4.1.2 in Cygwin 1.5.25-11

2008-05-21 Thread Longyu Mei
How about minGW? Did you try that? I have similiar
problem and I will try to see if there is any
difference.


--- jadooo <[EMAIL PROTECTED]> 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 
> > #include 
> > int main( ) 
> > {
> >using namespace std;
> >   
> >  const basic_string  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/



does Cygwin support wide char?

2008-05-21 Thread Longyu Mei
Does Cygwin support wide char? If yes, which package i
should install? I cannot build boost on Cygwin due to
no wide char support on my current Cygwin
installation.
thanks,


  

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



Cygwin = cross platform (one way)?

2008-05-15 Thread Longyu Mei
I don't know if this question should be asked here or
not.

I have a small socket server application running on
Linux. It uses Unix socket libraries and also do some
file operations. I am wondering if I can compile it
with Cygwin without any changes on my code?

If yes, that means Cygwin is kind of tool to make an
application being cross platform from Linux to
Windows? So it cam replace ACE and Boost for those
start from Linux?

Please just send your comments to me if any if this
question should not be posted here.

thanks,

James


  

--
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: please help

2008-05-14 Thread Longyu Mei

> Have you built ACE for Cygwin? You will probably
> need to regenerate your
> make files; if they are testing for *.so, then they
> are still the Linux
> versions, and it's a bad idea to just disable those
> checks!
> 
> The instructions for building ACE on Cygwin
>
(http://www.dre.vanderbilt.edu/~~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#cy
> gwin) are a little out of date, but they might work
> for you. Note the
> ACE build on Cygwin is experimental.
> 

We have two choices for this experimental: 
1. use Microsoft compiler to do it: ACE and boost
should work under Microsoft compiler. but we may need
to do make changes on make files

2. user windows g++, such as cygwin: We didn't
expected ACE and boost changes as we found now. but
the make system suppose should be stay the same (minor
changes may needed) as we have now.

Looks like we need to rethink it again.

thanks,

James


  

--
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: please help

2008-05-14 Thread Longyu Mei
Thank you for your help.

I have successfully eliminated those two error
messages.

They were caused by the ACE make include files.

In those include files, there are some checking for
library, such as
PLATFORM_AIO_SUPPORT := \
   $(shell test -e /usr/lib/librt.so && echo
-DACE_HAS_AIO_CALLS)

I commented out those checking related to librt.so*
then those error message went away.

I don't know whether Cygwin should include those lib
or ACE should remove those checking.

Anyway, a progress was made. 

thanks,





--- "Larry Hall (Cygwin)"
<[EMAIL PROTECTED]> wrote:

> Longyu Mei wrote:
> > Great! I see friends are here now.
> > 
> > Let me tell you the entire story.
> > 
> > We have a Linux application without any GUI. We
> used
> > ACE (for socket) and boost for portability. It is
> a
> > product now. We did not build it on Windows before
> > even we plan to do that. Now we try too see if we
> can
> > build and run it on Windows machine. 
> > 
> > I did a little research and then decided try
> CygWin
> > first. I used the setup to download and install
> > CygWin. I copy the entire project tree from source
> > control onto my XP machine. 
> > 
> > Then I start the CygWin by click the Cygwin icon
> and
> > cd to my source directory and tried "make clean"
> as I
> > did on Linux machine.
> > 
> > The first two lines are the error messages I
> mentioned
> > on my previous email. 
> > 
> > I did do any system environment variable
> configuration
> > which is not required.
> > 
> > The issue is why that librt.so is required and why
> > there is no such file under the installation. I
> have
> > installed ALL packages.
> 
> Shared objects are a *nix manifestation.  The
> closest thing
> on Windows is dynamic link libraries (DLL).  There
> are
> significant differences in these two concepts though
> so
> if you're app is relying on the existence and
> semantics
> of SOs, you're in for a long, difficult port to
> Windows.
> Cygwin won't magically massage this away for you.
> 
> -- 
> 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/
> 
> 



  

--
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: please help

2008-05-14 Thread Longyu Mei
Great! I see friends are here now.

Let me tell you the entire story.

We have a Linux application without any GUI. We used
ACE (for socket) and boost for portability. It is a
product now. We did not build it on Windows before
even we plan to do that. Now we try too see if we can
build and run it on Windows machine. 

I did a little research and then decided try CygWin
first. I used the setup to download and install
CygWin. I copy the entire project tree from source
control onto my XP machine. 

Then I start the CygWin by click the Cygwin icon and
cd to my source directory and tried "make clean" as I
did on Linux machine.

The first two lines are the error messages I mentioned
on my previous email. 

I did do any system environment variable configuration
which is not required.

The issue is why that librt.so is required and why
there is no such file under the installation. I have
installed ALL packages.

thanks

James


  

--
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: please help

2008-05-14 Thread Longyu Mei
Thank you for your email. Now I know I am on the list.


Yes, I use the setup.exe from the Cygwin.com and let
it help me download and install all those packages.

I started from those default packages. Then Devel
category and finally I have installed  ALL those
packages (2.66GB on my machine). 

I cannot build my application. that is the first step
to port that linux application to windows.

Could you please check if your /usr/lib directory has
that librt.so file? it will link to the
/lib/librt.so.1 file.

thanks


--- Richard Ivarson <[EMAIL PROTECTED]> wrote:

> Longyu Mei schrieb:
> 
> > Please at least reply once and let me know I am
> really
> > on the mailing list.
> 
> I can see your message (it's the first from you,
> however, at least for me).
> 
> Unfortunately I don't know a solution to your
> problem.
> Did you download the small Cygwin.exe, start it and
> then let install your 
> needed packages with it?
> 
> -Richard
> 
> 
> --
> 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/



please help

2008-05-14 Thread Longyu Mei
This is my third email onto the mailing list. I don't
know if I did something wrong because I can only
receive email from other people but never get reply on
my email.

I need your help on Cygwin. After two days' effort on
my WindowsXP machine, I still got message saying "ls:
cannot access /usr/lib/librt.so*: No such file or
directory" and "ls: cannot access /lib/librt.so*: No
such file or directory" when I tried to make my
application which was coding and running on Linux.

I have download and install ALL Cygwin packages on my
machine. I checked that "/usr/lib" directory and
"/lib" directory, there was no "librt.so*" there. 

I have no idea what I can do next. I did anything
wrong or the current Cygwin is missing something? 

Please at least reply once and let me know I am really
on the mailing list.

Thanks,

James



  

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