Boost logo

Boost :

Subject: Re: [boost] [tr1] Help needed with Darwin port
From: Marshall Clow (marshall_at_[hidden])
Date: 2009-01-13 11:51:27


>>I only know about vanilla Mac OS X with Apple's developer tools, but I
>>just ran some checks on several systems that have developer tools
>>installed.
>>
>>On Leopard (Darwin 9.6.0) Apple supports both gcc 4.0 and 4.2. Both
>>compilers use the same stdc++ libraries with the same headers. The
>>headers seem to be in /usr/include/c++/4.0.0:
>>
>>$ find /usr/include -name iostream
>>/usr/include/c++/4.0.0/iostream
>>/usr/include/gcc/darwin/3.3/c++/iostream
>>
>>The location of these headers seems to remain the same across the SDKs
>>for Panther, Tiger, Leopard and all versions of the iPhone OS, so I
>>would expect that path to be accurate for any version of Darwin up to
>>9.6.0 that supports gcc 4.x.
>>
>>In Snow Leopard (Darwin 10.0.0) the situation seems somewhat
>>different, as there are separate headers for gcc 4.0 and 4.2:
>>
>>$ find /usr/include -name iostream
>>/usr/include/c++/4.0.0/iostream
>>/usr/include/c++/4.2.1/iostream
>>
>>I hope this helps. Please let me know if I can provide additional
>>information.
>
>Thanks to Marshall and Stuart, I suspect based on the information
>you've provided that it's going to be next to impossible to
>configure TR1 correctly... but I wonder do you know:
>
>* Do people commonly install Boost into a system path such as
>/usr/include or /usr/local/include ?

I don't know. _I_ don't

>* Is it possible to detect the Darwin version number (to separate
>10.0 from 9.x)?

There's a shell variable "OSTYPE" which, on my system is set to "darwin9.0"
[ Running Leopard ]

>* Do you know what happens if someone installs gcc from source (ie
>not from Apples developer tools)?

Nope. I don't know.

-- 
-- Marshall
Marshall Clow     Idio Software   <mailto:marshall_at_[hidden]>
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk