Boost logo

Boost Users :

From: Glen Simmons (gsimmons_at_[hidden])
Date: 2004-09-24 10:52:59


On 24 Sep, 2004, at 5:13 AM, John Maddock wrote:

>> I'm attempting to use Boost.threads on Mac OS X 10.3 and am getting
>> the error "Compiler threading support is not turned on" when trying
>> to compile. I'm using Xcode, which is Apple's IDE, so I'm not sure
>> what to do when the error text helpfully suggests I set the correct
>> command line option. As far as I know, there's nothing extra that you
>> have to do to enable threading support in the compiler. I've written
>> multi-threaded apps using pthreads and never had to deal with command
>> line options. Any suggestions?
>
> It means BOOST_HAS_THREADS is not getting defined by the Boost config
> system: have you replaced changed this from the defaults at all? I
> ask because boost/config/compiler/gcc.hpp should definitely be
> defining that symbol on OS X.
>
None of the config files was changed initially. I also tried running
boost_1_31_0/libs/config/configure and using the user.hpp that it
generated. That file has BOOST_HAS_PTHREADS defined, but I get the same
result.

In re-reading my post, I realize that it may sound like I'm getting
this error when trying to build Boost. Not the case, Boost seems to
build ok and I get the 2 thread dylibs. It's when trying to use the
thread library in my code that I get the above. Am I wrong in assuming
that, since I ended up with the 2 thread dylibs, the problem is not in
the Boost build process?

Thanks
Glen


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