This is the mail archive of the
mailing list for the Cygwin project.
Re: Conversion from CYGWIN enviornment to Linux
> I have a code which is developed on 'Cygwin' enviornment using gcc. I need to run this code in Linux enviornment. Please inform me what are the necessary steps that I need to take to convert into Linux enviornment.
With such a vague question, no one will be able to answer this very
If your code is written with portability in mind, then just recompile
under linux. If you make use of Cygwin-specific or windows-specific
APIs or structures then of course that won't work. You'll either need
to rewrite the unportable parts in a way that is portable, or use
#ifdefs to get the equivalent glibc/linux functionality. If you are
using autoconf/automake/libtool then much of this work can be taken care
of for you automatically if you let it.
There is a possibility that you could run the binaries unmodified under
WINE, but you're much better off porting at the source level. Since the
cygwin license requires any code that links with cygwin1.dll to be
open source, then you should have full source to whatever app you're
 And on the off chance that a redhat/cygwin buy-out license is
involved, then obviously you have some commercial entity that you
should be asking this question to.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html