delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/09/15:38:42

From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: DLL problem when using C++/libstdc++
9 Jan 1998 15:38:42 -0800 :
Message-ID: <01BD1D36.D9638760.cygnus.gnu-win32@sos>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Mumit Khan'"
<khan AT xraylith DOT wisc DOT edu>

Mumit Khan wrote:
> I've probably gone thru every possible permutation of link libraries and
> various other methods (thanks Fergus for your Makefile.DLL!), but I just
> can't DLLs to work when using C++, especially when streams are pulled in.
> Application links, but bombs when the DLL is loading.
>

Try to call __main() (to activate global constructors) in you dllmain() on 
PROCESS_DLL_ATTACH event. Probably this will not be needed with B19.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019