delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/07/02:00:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42A538A3.EB5ED9F7@dessent.net>
Date: Mon, 06 Jun 2005 23:03:15 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Conversion from CYGWIN enviornment to Linux
References: <1DBC97F158E5CB448D1C0BE7CE81DEE62B7E96 AT INKARBLR-EX01 DOT Asia DOT DelphiAuto DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

"Mahadevaswamy.Lingaiah" wrote:

> 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
well.

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[1] any code that links with cygwin1.dll to be
open source, then you should have full source to whatever app you're
talking about.

Brian

[1] 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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019