Boost logo

Boost Users :

Subject: Re: [Boost-users] Link issue with condition_variable
From: Carl (carl.fischer_at_[hidden])
Date: 2010-03-19 14:13:41


Carl <carl.fischer <at> laposte.net> writes:

>
> My code (test.cpp) is:
>
> #include <boost/thread/thread.hpp>
> int main() {
> boost::condition_variable myCond;
> myCond.notify_one();
> return 0;
> }

I forgot an include:

#include <boost/thread/condition.hpp>

Didn't realise that a missing header file would cause issues
at the linking stage.

Strange how asking for help somehow triggers your brain into
finding the solution itself even after several days of thinking
about the problem.

-- Carl


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