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

Reply via email to