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 curlpp to accomplish this request), parse this JSON (use a jsoncons for this) and print on the screen one of its values. The program has only one file of 50 lines. I am developing in Linux Mint and compile 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 shared curlpp library was not found. I know how it works and what are the differences between shared and static libraries, but my question is:
Do I have to force my user to install curlpp before running my program? Can I distribute curlpp with my program? Is there a way to "merge" this library into my compile-time program?