Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199909111936.OAA10272@pluto.xraylith.wisc.edu> To: Vincent Penne cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: C++ libraries and DLL In-Reply-To: Your message of "Sat, 11 Sep 1999 22:33:02 +0200." <37DABC7E DOT 5E83 AT wanadoo DOT fr> Date: Sat, 11 Sep 1999 14:36:52 -0500 From: Mumit Khan Vincent Penne 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 AT sourceware DOT cygnus DOT com