delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/30/22:51:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <200003310349.VAA02361@hp2.xraylith.wisc.edu>
To: JSONCRAIG AT aol DOT com
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: C++ DllMain (bug?)
In-reply-to: Your message of "Thu, 30 Mar 2000 20:36:03 EST."
<b3 DOT 1fb693a DOT 26155b03 AT aol DOT com>
Date: Thu, 30 Mar 2000 21:49:40 -0600
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>

JSONCRAIG AT aol DOT com writes:
> When I build the enclosed test case with the doit.bat file included, I run
> 
> loadc.exe
> 
> to call LoadLibrary for a C dll that has only a DllMain function.  The output
>  
> affirms that the C DllMain function is called twice.  Then I run
> 
> loadcxx.exe
> 
> to call LoadLibrary for the C++ dll that has only a DllMain fucntion.  The 
> source file is almost the exact same file as the C source file, yet I get no 
> message saying that the DllMain function was called for the C++ dll.
> 
> I am using gcc version 2.95.2.
> 
> Am I missing something, or is this a bug?

I haven't had a chance to look at the source, so don't know what the
expected behaviour is. 

I tried it out on my Cygwin box, which runs a recent Cygwin snapshot +
gcc-2.95.2.

  $ ./loadc
  In C DllMain
  $ ./loadcxx
  In C++ DllMain

Is this the expected behaviour, or is this a bug? If not, please provide
info on what I expect to see.

Also, Cygwin DLL version (uname -a) please.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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