• 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: which set of C++ headers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which set of C++ headers?


  • Subject: Re: which set of C++ headers?
  • From: "Clark Cox" <email@hidden>
  • Date: Thu, 26 Jun 2008 07:21:10 -0700

On Wed, Jun 25, 2008 at 6:57 PM, Alexander Agranovsky <email@hidden> wrote:
> On Jun 25, 2008, at 8:56 PM, Clark Cox wrote:
>> On Wed, Jun 25, 2008 at 3:17 PM, Alexander Agranovsky <email@hidden> wrote:
>>>
>>> Hi all,
>>>
>>> OSX 10.5 SDK seems to include two STL implementations -- one in
>>> /Developer/SDKs/MacOSX10.5.sdk/usr/include/gcc/darwin/3.3/c++/, another
>>> one
>>> in /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/.
>>>
>>> They seem to be vastly different. So my questions are:
>>> - which one is supposed to be used?
>>
>> You use whichever corresponds to the compiler that you're using
>>
>>> - what controls which one is picked?
>>
>> The compiler chooses (i.e. you shouldn't have to worry about it)
>>
>
> Thanks! I figured that could be the case, but couldn't find any trace of
> presence of gcc/g++ 3.3 on the system.

GCC 3 is an optional install.

> BTW, any idea why they're not installed as part of the toolkit, while the
> headers are?

That's just the way they're packaged. GCC 3 is installed in /usr/bin,
while GCC 4 and later is installed in <your developer dir>/usr/bin. If
the user decides to install GCC 3 later, there is no way to know
*which* developer directory (remember, there can be multiple) to
install the headers into. It simplifies things if the headers are
installed unconditionally.

--
Clark S. Cox III
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >which set of C++ headers? (From: Alexander Agranovsky <email@hidden>)
 >Re: which set of C++ headers? (From: "Clark Cox" <email@hidden>)
 >Re: which set of C++ headers? (From: Alexander Agranovsky <email@hidden>)

  • Prev by Date: Re: st_ctimespec not implemented?
  • Next by Date: Re: st_ctimespec not implemented?
  • Previous by thread: Re: which set of C++ headers?
  • Next by thread: USB Mass Storage: command size limits
  • Index(es):
    • Date
    • Thread