DLL that does not use cygwin ?

Torben Mikael Hansen tmh@mic.dtu.dk
Wed Nov 17 07:43:00 GMT 1999


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




More information about the Cygwin mailing list