This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: FW: how do i port applications from linux environment to windows vc++
- From: Tim Prince <TimothyPrince at sbcglobal dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 11 Dec 2008 06:37:52 -0800
- Subject: Re: FW: how do i port applications from linux environment to windows vc++
- References: <7D453D0504B6A2429F98F4D72CBEDE4941B3571A@nwd2exm5.ad.analog.com>
- Reply-to: tprince at computer dot org
Rajagopal, Prasanth wrote:
> I am not sure if this is the right forum to ask this question, but how
> do I port applications from Linux environment to windows vc++?
Not the right forum, if you're thinking of adding non-portable stuff, or
you depend on stuff not supported by VC.
> Assume I have only the C source codes, which do not use any system calls
> at all. But what about the header files? And Compiler difference?
> What all should I take care?
Already outside the scope of this forum. You can run CL /? I'll mention
that VC doesn't support std=c99; some of the features are available in
C++, of course. Nor does VC support auto-vectorization; surely you knew
that. Options aren't entirely consistent between x86 and x64.
>
> I have an application that I compiled and executed with cygwin and now I
> want to move that to VC++.
I open a cmd window which is set up in accordance with vcvarsxx.bat, and
then run my \cygwin\cygwin .bat script, so as to have bash and make
available. I make a separate version of my Makefile with VC9 options.
You may call it cheating, but attempts to use ancient versions of NM are
to be avoided; gnu make is viable with VC in both cygwin and mingw
versions. GUI issues are well outside the scope of this list.
--
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/