This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]