Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Sat, 22 Jan 2000 12:17:48 +0000 (GMT) From: Matthew Brett To: Mike Goslin cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: building and linking with a dll In-Reply-To: <3888DBE7.B1DDB836@disney.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Dear Mike, Did you find Mumit Khan's dllhelpers page? http://www.xraylith.wisc.edu/~khan/software/gnu-win32/dllhelpers.html Cheers, Matthew On Fri, 21 Jan 2000, Mike Goslin wrote: > I can't successfully build and link with a .dll. I've found 2 versions > of the "5-step program" instructions to create a .dll and its' .a using > ld and dlltool, but I still get "undefined reference" errors from ld. > Is there a simple example somewhere I could take a look at? More > specifically, I'd love more information on: > - the correct link lines (and dlltool lines), > - how to generate a .def file automatically (if this is possible), > - where to put an entry point function for the .dll so that -e @12 > will pick it up successfully (is it necessary to have an entry point at > all?), > - and whether __declspec(dllexport) is still necessary to export classes > and global variables (or if the .def file is sufficient). > > Thanks, > Mike > > -- > -------------------------------------------------------------------------------- > Mike Goslin mike DOT goslin AT disney DOT com > Walt Disney Imagineering - VR Studio (818)544-3015 > Obligatory disclaimer: Views expressed here are mine and in no way > represent the Walt Disney Company > -------------------------------------------------------------------------------- > > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com