Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-10-15 01:27:10


brock_peabody wrote:
> 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.

At least at Linux, the -pthread option to gcc causes Boost.Config to define
BOOST_HAS_THREADS.

> 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?

Possibly, cygwin's gcc does not recognize -pthread.

> 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'".

Yea, it does not recognize it. Could you please get

http://zigzag.cs.msu.su:7813/working_copy/new/os.jam
http://zigzag.cs.msu.su:7813/working_copy/tools/gcc.jam

place to the appropriate directories in your V2 tree and try again. I've moved
threading related code from V1, and hopefully it will fix your problem.

- Volodya

>
> Any ideas?
>
> Thanks
>
>
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

 


Boost-Build 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