0

I built boost latest version (64 bit, msvc-10.0). When using the libraries with my project getting following linker error:

error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?

Things checked: 1. Libraries are present in the path specified 2. Built 64-bit boost library 3. Using latest boost headers, etc..

Any suggestions?

user1989504
  • 133
  • 1
  • 13
  • have you specified boost with `address-model=64` in b2 command that you used to build boost? – Jepessen Apr 29 '14 at 07:09
  • Command I gave is: bjam --build-type=complete link=static threading=multi --layout=versioned --with-date_time --with-regex --with-thread address-model=64 runtime-link=shared toolset=msvc-10.0 – user1989504 Apr 29 '14 at 07:14
  • try to add `libboost_system_balabala.lib` to your additional dependencies. – jfly Apr 29 '14 at 07:32
  • Thanks @jfly. Solved the issue – user1989504 Apr 29 '14 at 07:37
  • Possible duplicate of [Trying to link Boost 1.52 thread](http://stackoverflow.com/questions/14674374/trying-to-link-boost-1-52-thread) – Protoss May 29 '16 at 06:48

1 Answers1

0

I've experienced the same problem when using some header-only boost library. The problem is some libraries are themselves header-only, but they depend on boost.system which need be linked against your program.

jfly
  • 7,715
  • 3
  • 35
  • 65