This is the mail archive of the
mailing list for the Cygwin project.
Re: Problems exporting my DLL functions...
- From: Andreas Ames <andreas dot ames at Tenovis dot com>
- To: cygwin at cygwin dot com
- Date: 21 Aug 2002 10:44:47 +0200
- Subject: Re: Problems exporting my DLL functions...
- References: <3D62A993.AC202DD5@gmx.net>
Lostmind <email@example.com> writes:
> 2. How do I tell the compiler/linker which functions I want to export (I
> marked them with EXPORT in the file already, but they didn't seem to be
> available in the created DLL)
an alternative way to EXPORT and --export-all-symbols is to create a
.def file with all the functionnames you want to expose to your users
and link this .def file as the very first file before any .o and .a;
see the ld-docu for command line option 'shared' for more details.
The only thing I can't figure out is how to prevent ld from
additionaly exporting all global variables in the .o an .a files. Can
anyone more knowledgable give me a hint?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html