dllcrt0.o not found
Mumit Khan
khan@xraylith.wisc.edu
Sun Jan 31 23:52:00 GMT 1999
"S. Krishnaprasad" <s.krishnaprasad@tatainfotech.com> writes:
>
> I am trying to create a dll from a set of .o files but
> ld gives an error saying
> dllcrt0.o cannot find : dllcrt0.0 no such file or directory
>
You must be using ld to create the DLL, which is usually not worth the
hassle unless you need something special (I can't imagine what however).
Use dllwrap. The easiest case is where you export all symbols.
For the usual C code,
$ dllwrap --export-all -o mydll.dll foo1.o foo2.o -L. -llib1
For C++,
$ dllwrap --driver-name=c++ --export-all -o mydll.dll foo1.o \
foo2.o -L. -llib1
If you have export definition file (.DEF), then you can specify that
as well (otherwise dllwrap will export everything, which may not be
what you want):
$ dllwrap --def mydll.def -o mydll.dll foo1.o foo2.o -L. -llib1
You get the idea.
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list