Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 5 Jul 2002 16:30:14 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: g++ global constructor bug? Message-ID: <20020705203014.GA18639@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <200207052009 DOT g65K9Fr00451 AT new-york DOT lcs DOT mit DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207052009.g65K9Fr00451@new-york.lcs.mit.edu> User-Agent: Mutt/1.3.23.1i On Fri, Jul 05, 2002 at 04:09:15PM -0400, Douglas S. J. De Couto wrote: >the following program doesn't work right with cygwin, it seems the >global object sh constructor is not being called. If I had to guess I'd say that the constructor is kicked off before stdio is completely set up. cgf >-------------------- > >#include > >struct foobar { > foobar(int i) { printf ("foobar(%d)\n", i); } >}; > >foobar sh(1); > >int >main(int argc, char **argv) { > foobar s(2); >} -- Please do not send me personal email with cygwin questions. Use the resources at http://cygwin.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/