delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/02/12:43:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <37A54F35.A4FC2777@dgs.monash.edu.au>
Date: Mon, 02 Aug 1999 17:56:37 +1000
From: Brendan Simon <brendan AT dgs DOT monash DOT edu DOT au>
Reply-To: brendan AT dgs DOT monash DOT edu DOT au
Organization: CTAM Pty Ltd
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: Alexey Yakovenko <work AT makpes DOT donobl DOT db DOT energy DOT gov DOT ua>
CC: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: cygwin1.dll
References: <2372 DOT 990802 AT makpes DOT donobl DOT db DOT energy DOT gov DOT ua>

Waker wrote:

> hello there.
>
> is there any way to exclude cygwin1.dll from linking? i don't wanna
> port any unix app to a win32, but want to compile some application
> using cygwin, and cygwin1.dll is not required. how do i do this? is
> there somehing like -nodefaultlib? =)
>
> i used following command line:
>
> g++ -o myapp myapp.cpp -Wl,-S,--strip-debug
>
> thanx.

I think you want the -mnocygwin option.  Check Mumit Khan's web site
(there is a link to it on the soureceware.cygnus.com/cygwin page) for a
HOWTO on compiling apps that do not require the cygwin1.dll.  Basically
the compiler will link to the Microsoft libraries instead.

Brendan Simon.



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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