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: C++ libraries and DLL


Vincent Penne <vincent.penne@wanadoo.fr> writes:
> Hi !
> I come to a problem that must be frequently asked, but for whichI
> haven't found any positive answer in the list archive.
> I have read the very good explanations of Fergus Henderson on how to
> make DLLs with Cygwin. 
> The problem now is that this works fine with C, but certainly not with
> C++ when one want to access some static members of class (for example).
> Is there any way to do that ? Is it windoz DLL loader's fault, that
> relocate only function calls and not variables pointers ? What is the
> difference between relocating a function call and relocating a variable
> pointer ?
> Thanks in advance if you can enlight me on these points !

Fergus' description of building DLL is somewhat outdated now; you should
read http://www.xraylith.wisc.edu/~khan/software/gnu-win32/#dllhelpers
and get the examples in the package.

It's an issue with how Windows DLLs work, and not trivial to get it right 
the first time!

Regards,
Mumit


--
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]