On Sunday, 23 August 2015 at 16:00:19 UTC, Tony wrote:
Thanks for the replies. It compiles OK with just. However, it isn't linking:

/usr/bin/ld: cannot find -lcurl


I do have some versions of libcurl on my system:

/usr/lib/x86_64-linux-gnu/libcurl.so.3
/usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0
/usr/lib/x86_64-linux-gnu/libcurl.so.4

I see there is a -L option to pass things to the linker

-Llinkerflag   pass linkerflag to link

but I am not sure how to use it.

I tried

ld weather_report.o -lcurl -L/usr/lib/x86_64-linux-gnu

and

ld weather_report.o -lcurl -L /usr/lib/x86_64-linux-gnu

but it also says it can't find libcurl:

ld: cannot find -lcurl

Reply via email to