Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3995C58A11F7D211A7EE00105AC580984ACEA5@BE-BRU-EXCH-2> From: "Pirot, Thierry" To: Cygwin Subject: RE: Static version of Cygwin DLL? Date: Thu, 28 Dec 2000 01:01:45 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id CAA31656 Maybe this could be an acceptable workaround: On Fri, Nov 24, 2000 at 02:26:49AM -0600, Pirot, Thierry wrote: >http://www.xraylith.wisc.edu/~khan/software/gnu-win32/mno-cygwin-howto.txt > >hope this help, I don't think it will. This document tells you how to build an application that does not rely on cygwin in any way. Unless I'm missing something, this is not what was being asked for. The real answer is "You can't do that. Sorry." cgf >-----Original Message----- >From: Daniel Lidström [mailto:danli97 AT ite DOT mh DOT se] >Sent: Thursday, 23 November, 2000 13:10 >To: cygwin AT sources DOT redhat DOT com >Subject: Statically linking cygwin1.dll > > >Hi, how do I statically link cygwin1.dll into my executable? > > >Daniel Lidström >danli97 AT ite DOT mh DOT se >www.ite.mh.se/~danli97/ -----Original Message----- From: Andre Oliveira da Costa [mailto:costa AT cade DOT com DOT br] Sent: Wednesday, 27 December, 2000 23:25 To: Cygwin Subject: Static version of Cygwin DLL? Hi there, I need to build an executable using Cygwin (gcc, ld etc.), but I need it not to depend on cygwin1.dll. I tried to link directly with /usr/lib/libcygwin.a : gcc -static -o ../bin/test.exe ../obj/test.o -L/usr/lib -lcygwin but the resulting executable still requires the presence of cygwin1.dll on the path. I've searched the archives, but did not find anything closer than this: http://www.delorie.com/archives/browse.cgi?p=cygwin/1998/02/13/01:17:34 it's too old, I thought maybe there could be something more up-to-date (I tried Mumit's site as well, but it deals mainly with the problem of building DLLs with Cygwin). Any hints or directions to other documentation about this would be greatly appreciated. TIA. Andre -- André Oliveira da Costa -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple