Boost Linker Error: Unresolved External Symbol "Class Boost::System::Error_Category Const & _Cdecl Boost::System::Get_System_Category(Void)"

Boost linker error: Unresolved external symbol class boost::system::error_category const & __cdecl boost::system::get_system_category(void)

I solved the problem. I had built 32-bit libraries when I had intended to build 64-bit libraries. I fixed up my build statement, and built 64-bit libraries, and now it works.

Here is my bjam command line:

C:\Program Files (x86)\boost\boost_1_38>bjam --build-dir=c:\boost --build-type=complete --toolset=msvc-9.0 address-model=64 architecture=x86 --with-system

C++ Boost: undefined reference to boost::system::generic_category()

You should link in the libboost_system library. I am not sure about codeblocks, but the g++ command-line option on your platform would be

-lboost_system

Linker error with Boost 1.53 and VS 2013 on x64

A bit late, but I didn't see your question earlier.

You need to remove the - in front of address-model=64 - it's a property, not an option. So I think you weren't building for 64-bit after all, as -address-model=64 was taken to be an (probably invalid) option.

Compiler error when including boost/asio.hpp on C++ Builder 2010

Solved as per the edit:

I added BOOST_ALL_NO_LIB to my Conditional defines and added the errorcode.cpp from /libs/system/src/ folder to my Project.



Related Topics



Leave a reply



Submit