PDA

View Full Version : c++ boost thread library from packages question



daweefolk
February 16th, 2010, 08:03 PM
I installed the boost thread library from the package manager and I'm wondering if I'd use the same code to include it in my c++ program as the examples i found:

#include <boost/thread.hpp>

dwhitney67
February 16th, 2010, 08:13 PM
EDIT: You are correct (Bad info.... The correct include path is <boost/thread/thread.hpp>.)

You will also need to link with libboost_thread-mt.so.


g++ your_app.cpp -lboost_thread-mt