This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: problem building a dll that uses other dll's


These are from the SDK_4_ming_cygwin32
lib2def does the obvious, the Makefile
should show you how to use it.

If you don't have the .lib file, you can use impdef.exe
to generate the .def file, you may need to edit it
to eliminate c++ junk, (vc++ has different
name mangling conventions then g++)

just redirect the output of impdef to a file, then
run dlltool on it as shown in the enclosed Makefile.

On Mon, 25 Aug 1997 14:54:39 -500, you wrote:

>> The dll is not the stub library, the stub library
>> for foo.dll is libfoo.a
>
>ok, the thing is that i don't have the stub library for foo.dll.  foo.dll
>is from a commercial product.  does this mean i'm stuck?  if i had the .a 
>files i would have been all set long ago :)
>
>is there some way to generate the .a file for foo.dll?
>
>> BTW all of this stuff is in the ld man page, and also
>> in gcc.info, you might try reading them.
>
>really i already knew all the basics of ld, the stuff i'm having the 
>problem with is specific to gnuwin32.

Then why are you asking about -l "small L"?

One of the basics of ld, is that you don't link directly with coff or aout
shared libraries, you have to make a stub library first.

That's the main reason why linux when to ELF.

>
>thanks.
>---------------------------------------------------------
>Dan Goldwater          dgold@brown.edu
>http://fatmac.ee.cornell.edu/~goldwada
>---------------------------------------------------------
>
>
>

(jeffdbREMOVETHIS@netzone.com)
delete REMOVETHIS from the above to reply
         Mikey

Makefile

lib2def

impdef.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]