This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: DLL Data Symbols
- To: Cygwin Mailing List <cygwin at sourceware dot cygnus dot com>
- Subject: Re: DLL Data Symbols
- From: stefan <stefan at lkcc dot org>
- Date: Fri, 23 Jun 2000 23:10:17 +0200 (CEST)
On Fri, 23 Jun 2000, stefan wrote:
> Hi Cygwinners,
>
> we are going to create some DLL via gcc, dlltool and dllwrap. This seems
> to work for functions but not for DATA.
>
> What kind of modifications do i have to do for both the DLL and the
> application to have imported data symbols in my application ?
Sorry for this, i just found something in the mailing list archives...
We need "__declspec(dllimport|dllexport)" in front of variables.
But another question is, if it is possible to link against the dll itself
or is it really neccessary to build the apropiate link library via
"dlltool --output-lib" ?
Maybe it is also possible to create a dll directly by gcc, thus we do not
need "dllwrap" and "dlltool --export-all --def" ?
Thanks in advance...
Stefan.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com