Boost logo

Boost Users :

Subject: Re: [Boost-users] undefined reference to
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2011-03-09 15:25:34


On 2011-03-09 18:51, Marco Piacentini wrote:
> I've spent 2 hours to try to solve this error
>
> **** Build of configuration Debug for project ServerFork ****
>
> make all
> Building target: ServerFork
> Invoking: GCC C++ Linker
> g++ -L/usr/lib -o"ServerFork" ./ServerFork.o -lboost_thread -lboost_system

[snip]

> ./ServerFork.o: In function `boost::asio::error::get_system_category()':
> /usr/nuovoboost/boost_asio_1_5_2/boost/asio/error.hpp:216: undefined
> reference to `boost::system::system_category()'
> collect2: ld returned 1 exit status
> make: *** [ServerFork] Error 1
>
> I've seen that probably I need to compile the boost system library...but
> I don't be able...I'm trying but I don't find a step to step clear and
> simple guide...does anyone help me?
>

What does "ls -la /usr/lib/libboost_system*" say?

Rutger


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