delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/17/10:44:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <01135E04E54DD311BAC300A0C9ED9352177BB3@micsrv1.mic.dtu.dk>
From: Torben Mikael Hansen <tmh AT mic DOT dtu DOT dk>
To: "'cygwin'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: DLL that does not use cygwin ?
Date: Wed, 17 Nov 1999 16:43:51 +0100
X-MS-TNEF-Correlator: <01135E04E54DD311BAC300A0C9ED9352177BB3 AT micsrv1 DOT mic DOT dtu DOT dk>
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.10)

------_=_NextPart_000_01BF3112.900D47A8
Content-Type: text/plain

How do I build a DLL that does not use cygwin1.dll

I've tried the following but the DLL still has cygwin1.dll in its import
table

gcc -c axdrv.cpp -Wall -mno-cygwin
ld --base-file axdrv.base --dll -o axdrv.dll -e _dll_entry AT 12 axdrv.o
dlltool --as=as --dllname axdrv.dll --def axdrv.def --base-file axdrv.base
--output-exp axdrv.exp
ld --base-file axdrv.base axdrv.exp --dll -o axdrv.dll -e _dll_entry AT 12
axdrv.o 
dlltool --as=as --dllname axdrv.dll --def axdrv.def --base-file axdrv.base
--output-exp axdrv.exp
ld axdrv.exp --dll -o axdrv.dll -e _dll_entry AT 12 axdrv.o

Putting a -mno-cygwin anywhere else results in compile time errors.

Torben

___________________________________________________
Torben Mikael Hansen
Research Assistant
Nanotechnology
Mikroelektronik Centret
DTU Building 345e, DK-2800 Kgs. Lyngby, Denmark

office:	157
tel.:   	+45 4525 5731
lab:		+45 4525 5812
fax:		+45 4588 7762
email: 	tmh AT mic DOT dtu DOT dk



------_=_NextPart_000_01BF3112.900D47A8
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
------_=_NextPart_000_01BF3112.900D47A8--

- Raw text -


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