1
I wrote a program that uses a library called curlpp. The program is very simple and all it does is make an HTTP request that returns a JSON (use the curlpp to perform this request), parse this JSON (use the jsoncons for this) and print on the screen one of its values. The program has only a file of 50 lines. I am developing on Linux Mint and compiling with the following command:
g++ -o wrapper main.cpp -lcurl -lcurlpp -std=c++11
The generated executable works normally on my computer, however when I try to run it on other computers it says that the curlpp shared library was not found. I know how it works and what the differences are between shared libraries and static libraries, but my question is:
Do I have to force my user to install curlpp before running my program? Can I/should I distribute curlpp together with my program? Is there any way to "join" this library to my compile-time program?
Thank you! I chose to distribute the library (libcurlpp.so.0) together with the program and explain how to proceed in README
– Borda