28.09.2013 17:06, Jordi Sayol пишет:
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.
Thank you for info. I have installed "libcurl4-gnutls-dev" - the same
happens, symbols are undefined. But with -lphobos2 it links... Why
linker don't find these symbols if libs are installed? Should I pass to
linker some additional info in this case?