delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/22/10:54:59

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: <255470-220028422145438780@M2W031.mail2web.com>
X-EM-Version: 6, 0, 0, 3
X-EM-Registration: #00E0641810D91B008120
X-Priority: 3
Reply-To: lhall AT rfk DOT com
X-Originating-IP: 209.113.174.244
From: "lhall AT pop DOT ma DOT ultranet DOT com" <lhall AT pop DOT ma DOT ultranet DOT com>
To: nm127 AT hszk DOT bme DOT hu, grouse AT mail DOT utexas DOT edu, cygwin AT cygwin DOT com
Subject: Re: program that doesn't require cygwin1.dll
Date: Thu, 22 Aug 2002 10:54:38 -0400
MIME-Version: 1.0
X-OriginalArrivalTime: 22 Aug 2002 14:54:38.0722 (UTC) FILETIME=[D6A73620:01C249EB]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g7MEsxp31599

Hello Nemeth,

Perhaps the FAQ isn't exactly the question you have but it's close.
Once you look at the response, you'll see that it addresses your question,
which is why I directed you there.  So I guess it's fair to say that my 
response is suggesting that a more broad perusal of the FAQ can often 
unearth very pertinent and helpful responses to a specific question.  In 
this case, these two FAQ questions are quite related to your inquiry.
However, I understand the reason for your original oversight of this 
related FAQ entry.  I expect that it answers your question though, right?

Larry 

Original Message:
-----------------
From: Nemeth Marton nm127 AT hszk DOT bme DOT hu
Date: Thu, 22 Aug 2002 11:08:31 +0200 (MEST)
To: lhall AT rfk DOT com, grouse AT mail DOT utexas DOT edu, cygwin AT cygwin DOT com
Subject: Re: program that doesn't require cygwin1.dll




On Wed, 21 Aug 2002, Larry Hall (RFK Partners, Inc) wrote:

> At 03:39 PM 8/21/2002, Nemeth Marton wrote:
>
>
> >On Fri, 9 Aug 2002, Michael Hoffman wrote:
> >
> > > On Fri, 9 Aug 2002, Nemeth Marton wrote:
> > >
> > > > I read in the FAQ (http://cygwin.com/faq/faq_4.html#SEC95) that
$SUBJECT
> > > > is not possible.
> > > >
> > > > But what about the Hello World! program with:
> > > > gcc -mno-cygwin hello.c
> > >
> > > Please read the previous FAQ entry,
<http://cygwin.com/faq/faq_4.html#SEC94>.
> >
> >OK, you are right.
> >
> >I suggest to change the title of this question from
> >Can I build a Cygwin program that does not require cygwin1.dll at
runtime?
> >to
> >Can I use Cygwin API statically linked?
> >or to
> >Can I use Cygwin API statically linked (so it does not require
> >cygwin1.dll at runtime)?
>
> And I'll change the FAQ entry for you to read:
>
> http://cygwin.com/faq/faq_4.html#SEC95
> Can I build a Cygwin program that does not require cygwin1.dll at runtime?
>
> I think that covers it, right?

I think there are two reasons a program `does not require cygwin1.dll at
runtime':
 1. It doesn't use the Cygwin API
    (this case is described in http://cygwin.com/faq/faq_4.html#SEC94
     `How do I compile a Win32 executable that doesn't use Cygwin?')
 2. It is statically linked with Cygwin API which is not possible
    (this is section http://cygwin.com/faq/faq_4.html#SEC95)

For me it is not clear that the `Can I build a Cygwin program that does
not require cygwin1.dll at runtime?' refers to wihch case.

	NMarci


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



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