www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/13/10:48:45

From: khan AT xraylith DOT wisc DOT 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 AT sdf5_l1117 DOT tatainfotech DOT co DOT in>
To: "S. Krishnaprasad" <s DOT krishnaprasad AT tatainfotech DOT com>
Cc: "cygwin" <gnu-win32 AT cygnus DOT com>

"S. Krishnaprasad" <s DOT krishnaprasad AT tatainfotech DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019