Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::disable_interruption problem
From: Aaron_Wright_at_[hidden]
Date: 2013-05-09 11:11:01


Did you try "-lboost_thread"?

---
Aaron Wright
From:   Mohammad Daei <modaei_at_[hidden]>
To:     boost-users_at_[hidden]
Date:   05/09/2013 08:08 AM
Subject:        Re: [Boost-users] boost::disable_interruption problem
Sent by:        "Boost-users" <boost-users-bounces_at_[hidden]>
I've tried
"c++ -I /root/boost_1_53.0 example.cpp -o example",
"c++ -I /root/boost_1_53.0 example.cpp -o example -lboost_system-mt 
-pthread",
"c++ -I /root/boost_1_53.0 example.cpp -o example -L 
/root/boost_1_53.0/stage",
I've tried installing boost through yum, or downloading source package and 
compiling them myself, still no luck
I'm really running out of ideas here!
On Wed, May 8, 2013 at 3:01 PM, Mostafa <mostafa_working_away_at_[hidden]> 
wrote:
On Tue, 07 May 2013 03:52:25 -0700, Mohammad Daei <modaei_at_[hidden]> 
wrote:
Hi. I'm trying to use boost package in Eclipse platform. In this line of
code:
boost::this_thread::disable_interruption di;
Although boost-1.41.0-17 is installed and I have included boost/thread.hpp
in the code, I receive the this error:
undefined reference to
'boost::this_thread::disable_interruption::disable_interruption()
I'm using CentOS 6 and gcc compiler. Anyone knows what's causing this
problem?
"Undefined references" usually indicate a linker error. Have you checked 
that you're linking against the thread library?
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
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