This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems exporting my DLL functions...


Hi,

Lostmind <lostmind@gmx.net> 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?


TIA,

andreas

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]