This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
DLL that does not use cygwin ?
- To: "'cygwin'" <cygwin at sourceware dot cygnus dot com>
- Subject: DLL that does not use cygwin ?
- From: Torben Mikael Hansen <tmh at mic dot dtu dot dk>
- Date: Wed, 17 Nov 1999 16:43:51 +0100
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@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@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@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@mic.dtu.dk
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com