delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/21/20:04:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <5.2.0.9.2.20021221165429.027dfd10@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sat, 21 Dec 2002 17:03:46 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Running cygwin built programs in Windows XP
In-Reply-To: <au31v8$snd$1@main.gmane.org>
Mime-Version: 1.0

John,

Cygwin is a POSIX emulation environment for Windows. By default, the C / 
C++ compiler, linker and libraries all supply some portion or aspect of 
that emulation and the primary runtime component of the emulation is the 
Cygwin1.dll.

If you want to create "Windows-native" applications using Cygwin tools but 
which will not be "Cygwin executables" (i.e., that will be independent of 
Cygwin during execution) there's a compiler option "-mno-cygwin" which 
triggers a whole series of variant compilation and linking procedures 
designed to produce executables that are independent of the Cygwin runtime.

It sounds like that's the option you need to use to achieve the results you 
desire. If, however, you want a program that has all the POSIX capabilities 
provided by Cygwin itself, then you're bound to executing in a Cygwin 
environment, and that means at an absolute minimum, the presence of 
Cygwin1.dll and, if you're distributing this software, conformance with the 
Cygwin license's redistribution terms.

The horns of a dilemma, you say? Nonsense! It's the best of both worlds!

Randall Schulz


At 16:41 2002-12-21, John Seeliger wrote:
>How do I run a program that I built with gcc under Cygwin in Windows?  When
>I try to run them, it says it can't find cygwin1.dll.
>
>--
>John Seeliger


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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