|
Boost Users : |
From: Tom Tan (SH/RDC) (tom.tan_at_[hidden])
Date: 2005-04-20 20:36:48
Yes, to enable multi-threaded code. But how?
What's going on inside while compiling with '-pthread'?
Or what's the difference between them at the compilation level? Or Is there anything happen at optimization level?
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]]
Sent: Thursday, April 21, 2005 03:59
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Re: why so many .so and .a files for boost?
On 4/20/05, Tom Tan (SH/RDC) <tom.tan_at_[hidden]> wrote:
> got it, then why do i have to turn on the '-pthread' option of g++ when using boost_thread library?
Because you need that option to enable multi-threaded code. The Boost
Threads library isn't much use without it :-)
-- Caleb Epstein caleb dot epstein at gmail dot com _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users
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