This is the mail archive of the cygwin@sources.redhat.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 & no-cygwin problem


Hi,

I've build a program with gcc (using -mno-cygwin option), and
linked it against a library of my own (also build with 
-mno-cygwin). So I can run it without cygwin1.dll (and it works). 

Then, I wanted to make a DLL of my library, and I used dllwrap.
I build my program again, it works, but now it cannot run without
cygwin1.dll ! When I run objdump on my DLL, it shows that there
are imports from cygwin1.dll :

>	DLL Name: cygwin1.dll
>	vma:  Hint/Ord Member-Name
>	4b6b0	  498  abort
>	4b6b8	  687  ftime
>	4b6c0	  697  getcwd
>	4b6cc	  881  putenv
>	4b6d8	  999  stat
>	4b6e0	 1008  strdup
>	4b6ec	 1089  write

All these functions are defined in libmingw32.a and my other 
files have no dependencies on cygwin1.dll. Any idea of what's
going wrong ?

Here's my dllwrap command line :

dllwrap -o mylib.dll --mno-cygwin --export-all-symbols --target
i386--mingw32 mylib.a mylib.dll.o -lgdi32 -luser32 -lmsvcrt 
-lwsock32 -lopengl32 -lglu32 --output-lib mylib.dll.a --entry myentry@12

(mylib.dll.o is an object file with the entry function "myentry",
also compiled with -mno-cygwin. when linking my program I use
mylib.dll.a instead of mylib.a)

Nicolas

--
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]