From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: how to build a dll that uses other dll's? 30 Aug 1997 18:05:13 -0700 Sender: mail AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199708240913.TAA18566.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU> Original-To: dgold AT brown DOT edu (Dan Goldwater) Original-Cc: gnu-win32 AT cygnus DOT com (Cygnus GNU-win32 mailing list) In-Reply-To: <33FBCC2D.98CBE385@brown.edu> from Dan Goldwater at "Aug 21, 97 01:03:41 am" X-Mailer: ELM [version 2.4ME+ PL15 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. - 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".