Many thanks Dave, the addition of -lcurl to the linker library solved it.
Alastair
On Monday, June 16, 2014 1:46:30 PM UTC+1, Alastair Gilmore wrote:
>
> Hi,
> 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);
>
> return EXIT_SUCCESS;
> }
>
>
>
> Thanks
>
> Alastair
> ...
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.