From: khan@xraylith.wisc.edu (Mumit Khan)
Subject: Re: dllcrt0.o not found
13 Jan 1999 10:48:45 -0800
Message-ID: <199901130218.UAA14939.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <001101be3e12$130b8c90$11247aa3@sdf5_l1117.tatainfotech.co.in>
To: "S. Krishnaprasad" <s.krishnaprasad@tatainfotech.com>
Cc: "cygwin" <gnu-win32@cygnus.com>

"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".
