How to use Boost library in QT creator on Ubuntu 14.04
<p>I want to use the C++ Boost library in the QT creator on Ubuntu 14.04, after trying many methods, I still get errors. </p>

<p>I installed the Boost library using:</p>

<pre><code>sudo apt-get install libboost-all-dev
</code></pre>

<p>The Boost library is installed in the directory:</p>

<pre><code>/usr/include/boost
</code></pre>

<p>Here is my main.cpp</p>

<pre><code>#include &lt;QCoreApplication&gt;
#include&lt;iostream&gt;
#include &lt;boost/asio.hpp&gt;
#include &lt;boost/asio/steady_timer.hpp&gt;

using namespace std;


int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    boost::asio::steady_timer timer_;
    timer_.expires_from_now(1000);


    return a.exec();
}
</code></pre>

<p>Any my .pro file:</p>

<pre><code>QT += core
QT -= gui

CONFIG += c++11

TARGET = test_boost_lib_in_QT
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

SOURCES += main.cpp

INCLUDEPATH += /usr/include/boost

LIBS += -L/usr/include/boost -lboost_system
LIBS += -L/usr/include/boost  -lboost_chrono
LIBS += -L/usr/include/boost  -lboost_thread
LIBS += -L/usr/include/boost  -lboost_timer
</code></pre>

<p>The compiling errors are: (I compiled directly from QT using "ctrl+B")</p>

<pre><code>/home/ndn-experiment/Desktop/test_boost_lib_in_QT/main.cpp:13: error: no matching function for call to 'boost::asio::basic_waitable_timer&lt;std::chrono::_V2::steady_clock&gt;::basic_waitable_timer()'
 boost::asio::steady_timer timer_;
                           ^

/home/ndn-experiment/Desktop/test_boost_lib_in_QT/main.cpp:14: error: no matching function for call to 'boost::asio::basic_waitable_timer&lt;std::chrono::_V2::steady_clock&gt;::expires_from_now(int)'
 timer_.expires_from_now(1000);
                             ^
</code></pre>

<p>What should I do?</p>