Boost logo

Threads-Devel :

From: Anthony Williams (anthony_at_[hidden])
Date: 2008-02-12 04:17:43


Quoting Thomas Hauk <thauk_at_[hidden]>:

> I'm having trouble with using Boost.Thread (1.34.1) on Mac OS X
> (10.4.11/ppc/Xcode 2.3).

You might get more help on the main boost list, but I'll try and
answer your question here.

> Which makes me wonder if somehow this .a file is really a .dylib.

Possibly, I know next-to-nothing about MacOS development.

> What's also strange is that although the build directories for all
> the other libraries have the same structure (e.g. filesystem/build/
> darwin/debug/link-static/libboost_filesystem-d-1_34_1.a), the thread
> directory has a threading-multi directory under the link-static
> directory (meaning the file I am trying to link to is in thread/build/
> darwin/debug/link-static/threading-multi/libboost_thread-mt-d-1_34_1.a).

The extra directories come from non-default settings. link=dynamic is
default, so link=static results in an extra directory. Likewise for
threading=multi. Obviously, boost.thread only compiles with
threading=multi, but it's still not the default for the build system
as a whole.

> Also: is there any plan to distribute the Boost libraries for Mac OS
> X in a similar way to how they are distributed for Windows (i.e.
> installer that has pre-built library binaries)?

That's definitely a question for the main boost list. Boost Consulting
provide the pre-built binaries, so it might be worth asking them.

Anthony

-- 
Anthony Williams            | Just Software Solutions Ltd
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk