Subject: Re: problem building a dll that uses other dll's
From: [email-masked] (Mikey)

30 Aug 1997 06:50:36 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
References: <[email-masked]> <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="--=_3402440a28422765075358a9.MFSBCHJLHS"
Original-To: [email-masked], [email-masked]
In-Reply-To: <[email-masked]>
X-Mailer: Forte Agent 1.01/32.397
Original-Sender: [email-masked]

----=_3402440a28422765075358a9.MFSBCHJLHS
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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          [email-masked]
>http://fatmac.ee.cornell.edu/~goldwada
>---------------------------------------------------------
>
>
>

([email-masked])
delete REMOVETHIS from the above to reply
         Mikey

----=_3402440a28422765075358a9.MFSBCHJLHS
Content-Type: application/octet-stream; name=Makefile
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=Makefile

----=_3402440a28422765075358a9.MFSBCHJLHS
Content-Type: application/octet-stream; name=lib2def
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=lib2def

dGlvbnMK

----=_3402440a28422765075358a9.MFSBCHJLHS
Content-Type: application/octet-stream; name=impdef.c
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=impdef.c

----=_3402440a28422765075358a9.MFSBCHJLHS--
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".