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: List-Archive: List-Help: , 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 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 CC: "'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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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