Search code examples
ubuntuboostcpp-netlib

libboost seems to be incomplete


I'm trying to install netlib on my ubuntu 12.04. Since it needs libboost to be installed I installed libboost using:

sudo apt-get install libboost-all-dev

but here is the problem when I'm trying to install netlib according to these instructions I get these errors:

In function `boost::thread::start_thread()':
undefined reference to `boost::thread::start_thread_noexcept()'
In function `boost::thread::join()':
undefined reference to `boost::thread::join_noexcept()'

Also I tried to compile netlib samples myself but I get this error:

fatal error: boost/network/protocol/http/server.hpp

I checked and in the folder boost is installed there is no network directory. I also downloaded boost package from its website but couldn't find network in those directories either. Should I do anything else in order to fix these errors?

Thank you


Solution

  • apt-get had installed libboost 1.48 and I figured there has been some problems with the old versions of boost:

    Ticket #7570

    Undefined symbols for architecture i386 - "boost::thread::start_thread_noexcept()"

    It looks like your headers are outdated

    first using :

    sudo apt-get remove libboost-all-dev
    

    I removed boost then deleted all the files in /usr/local/include/boost/ directory and then installed boost according to this manual.