This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
building and linking with a dll
- To: cygwin at sourceware dot cygnus dot com
- Subject: building and linking with a dll
- From: Mike Goslin <mike dot goslin at rd dot wdi dot disney dot com dot rd dot disney dot com>
- Date: Fri, 21 Jan 2000 14:21:27 -0800
- Reply-To: mike dot goslin at rd dot wdi dot disney dot com dot rd dot disney dot com
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 <name>@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.goslin@disney.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
--------------------------------------------------------------------------------