• 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: How are stdlib.h and time.h imported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How are stdlib.h and time.h imported?


  • Subject: Re: How are stdlib.h and time.h imported?
  • From: Boris Remizov <email@hidden>
  • Date: Tue, 21 Aug 2007 11:28:05 +0400

Sorry all. If we speak about C then implicit including is present; but if you mean C++ code then explicit including used. Its true both for gcc3 and gcc4.

On Aug 21, 2007, at 10:10 , Karsten wrote:

it did so in 10.3 i believe... you could write c apps without including <stdio.h> even though you used printf. as of 10.4 you have to include it explicitly though

Kind Regards
Karsten



Am 21.08.2007 um 08:03 schrieb Andrew Farmer:

On 20 Aug 07, at 23:51, Boris Remizov wrote:
Its standard behavior of gcc and other compilers. It looks in the well known places for header (eg. /usr/include ) and static libraries (/usr/lib) automatically.

That is very emphatically not the case. While /usr/include is on the default system header search path, gcc will not include any headers unless you specifically direct it to do so by including them, or including headers which include them.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How are stdlib.h and time.h imported?
      • From: Alastair Houghton <email@hidden>
    • Re: How are stdlib.h and time.h imported?
      • From: Chris Suter <email@hidden>
References: 
 >How are stdlib.h and time.h imported? (From: "Frank Bettger" <email@hidden>)
 >Re: How are stdlib.h and time.h imported? (From: Boris Remizov <email@hidden>)
 >Re: How are stdlib.h and time.h imported? (From: Andrew Farmer <email@hidden>)
 >Re: How are stdlib.h and time.h imported? (From: Karsten <email@hidden>)

  • Prev by Date: Re: How are stdlib.h and time.h imported?
  • Next by Date: (no subject)
  • Previous by thread: Re: How are stdlib.h and time.h imported?
  • Next by thread: Re: How are stdlib.h and time.h imported?
  • Index(es):
    • Date
    • Thread