V
V
Vadim Ushakov2021-08-26 03:26:00
GCC
Vadim Ushakov, 2021-08-26 03:26:00

What's the problem with not finding function references*?

The point is to find a solution to this problem. When building the project, a method not found error occurs.

../../../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()'


While cpprestsdk is built under the system. There is a project, it includes the boost-a libraries, it also includes the libcpprest library, which also uses the boost-a functions. The dilemma is, if the functions are not statically linked in libcpprest.a, then there is probably an error of not finding the required version of boost-a? In this case, how should libcpprest be built so that all the necessary libraries are collected statically in the library?*

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2021-08-26
@Nightmare1

When building the project, a method not found error occurs.

Make sure it's -lboostlisted after -lcpprestin the link command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question