unable to compile using boost

Asked by Gonçalo Fernandes

I am trying to compile using the boost libraries. I can't even compile the examples in the asio tutorial, i get a bunch of these errors:

asiotest.cpp:(.text+0x103): undefined reference to `boost::system::get_system_category()'

I have tried with packages supplied by ubuntu, i tried it in dedian and it's the same. I also tried downloading and installing the libraries from www.boost.org and i tried adding a -I and -L path/to/boost. I always get the same error and compilation fails.

Can someone help me out?

(I suppose someone will ask so: i'm using karmic beta amd64, it didn't work on jaunty either)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gonçalo Fernandes
Solved:
Last query:
Last reply:
Revision history for this message
Gonçalo Fernandes (ilogico) said :
#1

Problem solved.

In case someone is interested, it was a linking problem. I needed to add a -lboost_system argument to g++.