Comment 2 for bug 1001576

Revision history for this message
Zakhar (alainb06) wrote : Re: Error linking with libcurl4-gnutls-dev 7.22.0-3ubuntu4

Thank you for your very quick answer and it works like a charm.

But then I confirm there is indeed a *documentation bug*

Please do the following command:

$ sed -n 88p /usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html
<p class="level0">&nbsp; $ `curl-config --cc --cflags --libs` -o example example.c

It should read instead:
$ sed -n 88p /usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html
<p class="level0">&nbsp; $ `curl-config --cc --cflags` -o example example.c `curl-config --libs`

I attach the patch for the file:
/usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html

Should be applied as
$ sudo patch -b /usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html patch_curl-config.txt
patching file /usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html