cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: https.c

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Thu, 1 Mar 2007 01:22:28 -0600

On 3/1/07, Mark Pinto <markybob_at_gmail.com> wrote:
> I'm trying to compile
> http://curl.haxx.se/lxr/source/docs/examples/https.c exactly as is,
> with no modifications at all (learning libcurl). However, this fails
> and I cant figure out why. Any information/help would be very much
> appreciated.

You need to tell the linker to link with libcurl, try adding "-lcurl"
to the command line, or better yet:

gcc https.c -o https `pkg-config --libs libcurl`

 -Jeff
Received on 2007-03-01