cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: compiler error on Debian Linux

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 17 Jan 2002 07:46:16 +0100 (MET)

On Wed, 16 Jan 2002, Will & Viva wrote:

> I am new to curl, and get these errors when trying to compile a simple
> https program.
>
> gcc 'curl-config --cflags --libs' -o httpsrobot httpsrobot.c
>
> httpsrobot.c: In function `int gethttpsfile(char *, char *)':
> httpsrobot.c:50: `CURLOPT_SSLENGINE' undeclared (first use this function)
> httpsrobot.c:55: `CURLOPT_SSLENGINE_DEFAULT' undeclared (first use this function)
> httpsrobot.c:65: `CURLOPT_SSLCERTTYPE' undeclared (first use this function)
> httpsrobot.c:71: `CURLOPT_SSLKEYPASSWD' undeclared (first use this function)
> httpsrobot.c:74: `CURLOPT_SSLKEYTYPE' undeclared (first use this function)
> httpsrobot.c:76: `CURLOPT_SSLKEY' undeclared (first use this function)
>
> Can anyone help?

These are all options that concern the OpenSSL ENGINE support and other
options introduced in 7.9.3.

I assume you just haven't installed a 7.9.3 pre-release so then you're using
an older set of headers that lack these options.

You should either:

 A) Get a 7.9.3 pre-release installed and re-try. Be aware that the pre2
    release from yesterday is not fully working.

 B) Use only 7.9.2-options.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-17