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
Algorithm to Add or Subtract Days from a Date
How to Implement a Map with Different Data Types as Values
When Pass a Variable to a Function, Why the Function Only Gets a Duplicate of the Variable
C++ Type of Enclosing Class in Static Member Function
Image Retrieval System by Colour from the Web Using C++ with Openframeworks
The Most Efficient Way to Reverse a Number
Std::Pow Produce Different Result in 32 Bit and 64 Bit Application
What's the Point of Const Pointers
Class Members and Explicit Stack/Heap Allocation
Why Can't C++11 Move a Noncopyable Functor to a Std::Function
Why Does the Compiler Choose Bool Over String for Implicit Typecast of L""
Move Out Element of Std Priority_Queue in C++11
Skip Some Arguments in a C++ Function
Delete Calling Destructor But Not Deleting Object