cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

When building and linking as static library in another project.

Open vega0 opened this issue 4 years ago • 0 comments

../../../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 to boost::system::generic_category()' web_utilities.cpp:(.text.startup+0x15): undefined reference to boost::system::generic_category()' web_utilities.cpp:(.text.startup+0x1a): undefined reference to boost::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.

vega0 avatar Aug 26 '21 01:08 vega0