Boost logo

Boost Users :

Subject: Re: [Boost-users] Building Boost on Snow Leopard (with Xcode 3.2 installed)
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-09-03 05:36:28


Christopher Jefferson wrote:

>
> On 2 Sep 2009, at 23:18, James C. Sutherland wrote:
>
>> This probably won't help you, but there has been noise on two other
>> mailing lists I monitor (CMake being one) that suggest people are
>> having similar problems. It seems that Snow Leopard (and the new
>> GCC compiler bundled with it) defaults to 64 bit treatment or
>> something.
>
> That is exactly true. If you want to force 32-bit executables, you can
> give the -m32 flag (similarly, there is a -m64 flag for 64-bit).
>
> However, you can't just special-case snow leopard, because there is a
> number of 32-bit intel macs, on which you can install snow leopard,
> which themselves will default to 32-bit executables!
>
> The only (sane) method I've found to solve this is to do one of two
> things.
>
> 1) Just use the system setting.
> 2) Explicitly specify -m32 and -m64 on all systems.

Just to clarify, what is the reason of the original error, quoted below?

>>>> /usr/include/time.h:77: error: expected constructor, destructor,
>>>> or type conversion before ‘typedef’
>>>> /usr/include/time.h:124: error: ‘clock_t’ does not name a type
>>>> In file included from /usr/include/c++/4.2.1/cwchar:52,
>>>> from /usr/include/c++/4.2.1/bits/postypes.h:46,
>>>> from /usr/include/c++/4.2.1/iosfwd:49,
>>>> from /usr/include/c++/4.2.1/bits/stl_algobase.h:70,
>>>> from /usr/include/c++/4.2.1/bits/char_traits.h:46,
>>>> from /usr/include/c++/4.2.1/string:47,
>>>> from ./boost/program_options/errors.hpp:12,
>>>> from ./boost/program_options/options_description.hpp:
>>>> 12,
>>>> from libs/program_options/src/
>>>> options_description.cpp:10:

Is 32_64 fat compilation just broken?

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net