Subject: Re: dllcrt0.o not found
From: [email-masked] (Mumit Khan)

13 Jan 1999 10:48:45 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
To: "S. Krishnaprasad" <[email-masked]>
Cc: "cygwin" <[email-masked]>

"S. Krishnaprasad" <[email-masked]> 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
"[email-masked]" with one line of text: "help".