This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ global constructor bug?


On Fri, Jul 05, 2002 at 04:30:14PM -0400, Christopher Faylor wrote:
>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.

...and my guess would be wrong.  Constructors get kicked off first thing
in main.  That's plenty late enough in the process.  However, the
constructor list is empty in this case so nothing actually happens.

Looks like this is a variation of the binutils bug that was mentioned
earlier.  Does this go away if you revert to the binutils-20011002-1
release?

cgf

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]