public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* C++ libraries and DLL
@ 1999-09-11 13:35 Vincent Penne
  1999-09-30 23:42 ` Vincent Penne
  0 siblings, 1 reply; 6+ messages in thread
From: Vincent Penne @ 1999-09-11 13:35 UTC (permalink / raw)
  To: cygwin

Hi again,
to make my problem more clear, here is a very short sample where the
problem show out ...

 Vincent Penne.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* C++ libraries and DLL
  1999-09-11 13:35 C++ libraries and DLL Vincent Penne
@ 1999-09-30 23:42 ` Vincent Penne
  0 siblings, 0 replies; 6+ messages in thread
From: Vincent Penne @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 117 bytes --]

Hi again,
to make my problem more clear, here is a very short sample where the
problem show out ...

 Vincent Penne.

[-- Attachment #2: coucou.tar.gz --]
[-- Type: application/x-gzip, Size: 3106 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* C++ libraries and DLL
  1999-09-11 13:30 Vincent Penne
  1999-09-11 13:45 ` Mumit Khan
@ 1999-09-30 23:42 ` Vincent Penne
  1 sibling, 0 replies; 6+ messages in thread
From: Vincent Penne @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

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 !

 Vincent Penne.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C++ libraries and DLL
  1999-09-11 13:45 ` Mumit Khan
@ 1999-09-30 23:42   ` Mumit Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Vincent Penne; +Cc: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: C++ libraries and DLL
  1999-09-11 13:30 Vincent Penne
@ 1999-09-11 13:45 ` Mumit Khan
  1999-09-30 23:42   ` Mumit Khan
  1999-09-30 23:42 ` Vincent Penne
  1 sibling, 1 reply; 6+ messages in thread
From: Mumit Khan @ 1999-09-11 13:45 UTC (permalink / raw)
  To: Vincent Penne; +Cc: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* C++ libraries and DLL
@ 1999-09-11 13:30 Vincent Penne
  1999-09-11 13:45 ` Mumit Khan
  1999-09-30 23:42 ` Vincent Penne
  0 siblings, 2 replies; 6+ messages in thread
From: Vincent Penne @ 1999-09-11 13:30 UTC (permalink / raw)
  To: cygwin

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 !

 Vincent Penne.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-09-30 23:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-11 13:35 C++ libraries and DLL Vincent Penne
1999-09-30 23:42 ` Vincent Penne
  -- strict thread matches above, loose matches on Subject: below --
1999-09-11 13:30 Vincent Penne
1999-09-11 13:45 ` Mumit Khan
1999-09-30 23:42   ` Mumit Khan
1999-09-30 23:42 ` Vincent Penne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).