I have just installed boost for the first time on my Intel Mac, and it works fine in general, as long as I use only boost’s header files.
But when I try to use a lib, in my case the regex lib, my app links and launches fine, but then it soon crashes in a regex related destructor.
This even happens with the simple test program that’s given on boost.org’s unix install page .
I wonder if I need to set special compile/link options (I’ve used the defaults for a C++ Tool) other than setting the search paths and including the regex lib, of course?
(BTW, I have verified that the default compiler on my system is indeed gcc 4.01, which is the same my test project in XCode uses)
Answer to self:
While it’s still not clear what causes this problem, there is a workaround:
Instead of using the libs that the boost installer process builds, add the source code for the lib (in boost-main-folder/libs/libname/src/) to your Xcode project instead, having Xcode compile the sources for you.