public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* how to build a dll that uses other dll's?
@ 1997-08-20 22:04 Dan Goldwater
  1997-08-27  7:06 ` Fergus Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Goldwater @ 1997-08-20 22:04 UTC (permalink / raw)
  To: gnu-win32

Hi!
I am trying to build a DLL which has function calls which must be
resolved into existing win32 DLL's.

Following the instructions for building a relocatable dll, i get an
output but each of the three ld steps reports all the undefined
references for the functions which are in the existing win32 dll's.  i
had to add the --noinhibit-exec option to ld so that it wouldn't delete
the output dll due to the errors.

when i build this project on solaris, the linker doesn't complain about
the undefined references, and they are resolved to appropriate existing
.so files at runtime.

is there some option i need to give ld so it knows i want to resolve the
references at runtime to the existing dll's?  or am i clueless?

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


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to build a dll that uses other dll's?
  1997-08-20 22:04 how to build a dll that uses other dll's? Dan Goldwater
@ 1997-08-27  7:06 ` Fergus Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Fergus Henderson @ 1997-08-27  7:06 UTC (permalink / raw)
  To: Dan Goldwater; +Cc: Cygnus GNU-win32 mailing list

Dan Goldwater, you wrote:
> I am trying to build a DLL which has function calls which must be
> resolved into existing win32 DLL's.
> 
> Following the instructions for building a relocatable dll, i get an
> output but each of the three ld steps reports all the undefined
> references for the functions which are in the existing win32 dll's.  i
> had to add the --noinhibit-exec option to ld so that it wouldn't delete
> the output dll due to the errors.

You need to build import libraries for the DLLs you want to link your
DLL with, and then you need to link against those import libraries
when creating your DLL.

> when i build this project on solaris, the linker doesn't complain about
> the undefined references, and they are resolved to appropriate existing
> .so files at runtime.

Yeah, ELF is much nicer than gnu-win32 DLLs...

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh >   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-08-27  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-20 22:04 how to build a dll that uses other dll's? Dan Goldwater
1997-08-27  7:06 ` Fergus Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).