-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot link project using msgpack-c library #1031
Comments
msgpack_pack_str_body is an inline function. msgpack-c/cmake/pack_template.h.in Lines 782 to 785 in c3df1bb
msgpack_zone_free is not an inline function. Lines 217 to 222 in c3df1bb
So you need to link the library |
Thank you. How do I link this library? |
See your compiler/linker manual. Usualy |
Hello, |
Here are example source files and CMakeLists.txt. You can also try https://github.com/msgpack/msgpack-c/tree/c_master#install-from-git-repository instruction. |
Thank you. I have tried to reinstall the library with the []((https://github.com/msgpack/msgpack-c/tree/c_master#install-from-git-repository) instruction and the linking still fails. Then, I've tried by modifying the CMakeLists.txt file in the msgpack-c folder but I still get the linking error at the same line. Finally, I've tried by modifying the CMakeLists.txt file in the folder containing the "app_main.c" file and I the linker cannot find the "nvs_flash.h" file. |
It seems that the issue is caused by your code not msgpack-c. I cant help you any more. |
OK, thanks for your time. I will recreate the project from scratch. |
I have also build the project and tried to run the example programs, but getting the undefined reference error while linking.. |
Hello,
I'm using the msgpack-c library in my project. I've been working with the
msgpack_pack_str_body
andmsgpack_pack_int16
functions without problem. Now I want to use themsgpack_unpack_next
andmsgpack_object_print
functions as in the "Simple program with a loop" but I get the following compilation error:Nevertheless, the library is included in the project and
msgpack_zone_free
is in "zone.h" file which is included in "unpack.h" file. How can I solve this problem?The text was updated successfully, but these errors were encountered: