delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/31/10:34:02

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: B19: G++ Bug
31 Aug 1998 10:34:02 -0700 :
Message-ID: <Pine.SUN.3.93.980831000329.3417A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <19980830204347 DOT 27245 DOT rocketmail AT send104 DOT yahoomail DOT com>
Mime-Version: 1.0
To: Cramer Soft <aicramer AT yahoo DOT com>
Cc: gnu-win32 AT cygnus DOT com

On Sun, 30 Aug 1998, Cramer Soft wrote:

> I'm not sure if this is the place to post this as it's
> probably a (well known?) bug with g++ but here are the details:
> 
> ==================bug1.cc==============================
> #include<iostream.h>
> 
> class Test 
> {
> public:  
>   Test() { cout << "Creating Test\n"; }
>   ~Test() { cout << "Destroying Test\n"; }
> };
> 
> Test aTest;
> 

[ the program dies! ]

> Is there a later version/another g++ compiler
> I ought to be using?  Thanks --Andrew 

Yes, you should be using a newer version, specifically the egcs version
from http://www.xraylith.wisc.edu/~khan/software/gnu-win32/. Good news
is that *lots* of bugs are fixed; bad news is that this bug remains and 
I haven't had time to look at this. I don't know how cygwin dll
initializes stdio at startup, and this I suspect is tied to that.

Don't shoot the messenger ;-)

Regards,
Mumit

-
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