Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2003-10-15 05:29:57

> I'm having trouble with threading and cygwin. At first I couldn't
> get Boost.Thread to compile with cygwin at all. After some research
> I found that if I forced the definition of BOOST_HAS_THREADS in
> $(BOOST_ROOT)/boost/config/compiler/gcc.hpp it would compile.

That will be fixed in the next release - gcc on cygwin doesn't set any
macros to indicate when/whether it's thread safe, so we just have to turn on
threading support all the time.

> If I try to build something that is not in boost I am still getting
> this error. Do I have to do something special to get the system to
> include gcc.hpp during the build process?

Sure: include <boost/config.hpp> if you want to see the boost.config macros

> The other thing that bothers me is that when I try to build
> with "threading=multi", or if I just try to build Boost.Thread, I
> get the warning "g++: unrecognized option `-pthread'".

Yep, we should be using -mthread there: in fact that's what the current cvs
version does use, so someone's fixed it already...



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at