This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: DLL Data Symbols


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


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