microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
8.01k stars 1.66k forks source link

When building and linking as static library in another project. #1645

Open vega0 opened 3 years ago

vega0 commented 3 years ago

../../../libcpprest.a(web_utilities.cpp.o): In function > _GLOBAL__sub_I__ZNK3web7details19zero_memory_deleterclEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE': web_utilities.cpp:(.text.startup+0x10): undefined reference toboost::system::generic_category()' web_utilities.cpp:(.text.startup+0x15): undefined reference to boost::system::generic_category()' web_utilities.cpp:(.text.startup+0x1a): undefined reference toboost::system::system_category()' web_utilities.cpp:(.text.startup+0x43): undefined reference to `boost::system::system_category()'

I guess boost not statically compiling when building the library, or main project does'nt contains links to boost's static libraries? How to solve this problem? All compiling on linux Ubuntu 32bit.