$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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