• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re[2]: C++ Constructors on global vars not being run ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: C++ Constructors on global vars not being run ?


  • Subject: Re: Re[2]: C++ Constructors on global vars not being run ?
  • From: Thomas Engelmeier <email@hidden>
  • Date: Mon, 24 Sep 2007 18:21:48 +0200


On 24.09.2007, at 17:29, Peter Mulholland wrote:

Thanks for your comments.. i know it seems really odd...

[...]

My question now is, how do I force Xcode to link ALL object files
given to it, and not try to be clever ?

The C++ standard does not mandate the order of static initialisation. Read up in the 2003 standard if it is guaranteed all static initalizers run before main() is entered or only before the first non- ctor line of code in the corresponding compile unit is executed.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >C++ Constructors on global vars not being run ? (From: Peter Mulholland <email@hidden>)
 >Re: C++ Constructors on global vars not being run ? (From: Peter Mulholland <email@hidden>)
 >Re[2]: C++ Constructors on global vars not being run ? (From: Peter Mulholland <email@hidden>)

  • Prev by Date: Re[2]: C++ Constructors on global vars not being run ?
  • Next by Date: Re: Question about loading external image
  • Previous by thread: Re[2]: C++ Constructors on global vars not being run ?
  • Next by thread: Re: Re[2]: C++ Constructors on global vars not being run ?
  • Index(es):
    • Date
    • Thread