problem building a dll that uses other dll's

Mikey jeffdbREMOVETHIS@netzone.com
Mon Aug 25 23:11:00 GMT 1997


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: impdef.c
Type: text/x-c
Size: 10780 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19970825/b8b7a7e9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib2def
Type: text/x-shellscript
Size: 519 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19970825/b8b7a7e9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 2961 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19970825/b8b7a7e9/attachment-0002.bin>


More information about the Cygwin mailing list