Help with Curl library

I want to send a jpg file captured from a webcam to a remote server, and following good advice am wanting to use the curl library. I’m testing my programs on a i386 system running Ubuntu 12.04 before moving them to BBB.
I’ve created a program using Eclipse, but can’t get it to recognise the curl library. Library is located in /usr/include/curl and I have a path to this in Eclipse settings. An extract of the code is below, but I keep getting the error
‘undefined reference to `curl_easy_init’ '., as well as the other curl library routines (not shown here). The library routine curl-easy-init() is located in easy.h.
Can anyone offer a suggestion please.

(Program extract)
#include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>
#include <curl/easy.h>

int main(void) {
CURL curl;
puts("!!!Hello BeagleBone Black!!!"); /
prints !!!Hello BeagleBone Black!! */

/* get a curl handle */
curl = curl_easy_init(void);




The files in /usr/include/curl are only the prototype include files and NOT the library. The library is most probably under /lib, /usr/lib, or /usr/local/lib. You also may need to include the library in the linker options, for example -lcurl. HTH, Dave.

Many thanks Dave, the addition of -lcurl to the linker library solved it.