Binding boost.asio

I have a problem related to boost.asio. It uses boost.system and linker errors start with:

/boost_1_39_0/boost/system/error_code.hpp:205: undefined reference to `boost :: system :: get_system_category () '

which means i need to bind boost.system. I already created boost, and now I have some lib files.

  • boost_system-mgw32-d-1_39.dll and lib
  • libboost_system-mgw34-d-1_39.lib
  • libboost_system-mgw34-t-d-1_39.lib
  • libboost_system-mgw34-sd-1_39.lib

and a few more. How to knit them? Which one am I using? Will I copy everything together?

My system is win32 + mingw + eclipse cdt + qt 4.5.2 + qt integration for eclipse. I already found out what I need in the LIBS = section of my .pro file.

Can you give me some advice?

Thanks.

+5
1

, , , .. :

http://www.boost.org/doc/libs/1_39_0/more/getting_started/unix-variants.html#library-naming

eclipse, , gcc ( mingw) (-L), . , :

-L/path/to/libraries -lboost_system-mgw34-sd-1_39

+3

All Articles