You should link with Boost.System:
-lboost_system

Thanks Igor.

I tried before linking to boost_system, but it didn't worked. This time, I tried again, and it works. I probably changed something else in the process.

Thanks for your help!

--
federico