Answer the question
In order to leave comments, you need to log in
C++ linux compilation with libcurl library - how to do it?
Given: C++ application under linux using the libcurl library. The libcurl4-openssl-dev package is installed on the machine, everything compiles and works.
Question: how to build an application so that it can be run on another linux machine without the pre-installed libcurl package. Static or dynamic assembly - it doesn't matter. You may need the library itself from the curl.haxx.se off site, or everything you need is already in the system. If possible, in as much detail as possible.
Thank you.
Answer the question
In order to leave comments, you need to log in
You need to link libcurl statically, then the binary will include everything you need and be self-contained. If it is not possible (well, the library does not provide a static version), then take a dynamically linked .so file with you.
If you build an rpm or deb package, you can take care of the dependencies and download the library on installation.
You can simply add open-source to your build system - it will be built and linked statically. If you have cmake, you can take it from me .
As detailed as possible from the technical side:
www.ibm.com/developerworks/en/library/l-dynamic-li...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question