curl & linux

Jordi Sayol g.sayol at yahoo.es
Sat Sep 28 03:06:41 PDT 2013


On 28/09/13 10:28, Alexandr Druzhinin wrote:
> I use curl in my application. If I link it with -lcurl - symbols are undefined (libcurl3 installed), if I link with -lphobos2 - it links. So curl is linked with libphobos2.so? But what to do if I need static linking? (ubuntu 12.04 x86_64, dmd 2.063.2)
> 

To link against libcurl (-lcurl) you need to install libcurl development files. On Ubuntu, install one of these three packages: "libcurl4-openssl-dev", "libcurl4-gnutls-dev" or "libcurl4-nss-dev".

For libcurl static linking you should link against all libraries that libcurl depends on.

-- 
Jordi Sayol


More information about the Digitalmars-d-learn mailing list