This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DLL that does not use cygwin ?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]