cURL / Mailing Lists / curl-library / Single Mail

curl-library

Undefined macros in curl/curl.h

From: Alex Vinnik <alvinnik.g_at_gmail.com>
Date: Wed, 4 Jan 2012 19:39:00 -0600

*Hi everybody,*

*Just tried to compile ruby binding (curb) to latest libcurl from
bagder/curl and got these compilation error*
*
*
*
cc -I. -I. -I/home/alex/.rvm/rubies/jruby-1.6.2/lib/native/include/ruby -I.
-DRUBY_EXTCONF_H=\"curb_config.h\" -fPIC -fno-omit-frame-pointer
-fno-strict-aliasing -fexceptions -I/usr/local/include -g -Wall -m64 -c
curb_errors.c
curb_errors.c: In function ‘rb_curl_easy_error’:
curb_errors.c:169: error: ‘CURLE_OBSOLETE10’ undeclared (first use in this
function)
curb_errors.c:169: error: (Each undeclared identifier is reported only once
curb_errors.c:169: error: for each function it appears in.)
curb_errors.c:175: error: ‘CURLE_OBSOLETE12’ undeclared (first use in this
function)
make: *** [curb_errors.o] Error 1

*
*After some investigating figured out that these macros are not defined
anywhere in libcurl but referred to.*
CURLE_OBSOLETE10
CURLE_OBSOLETE12

libcurl itself builds ok obviously it doesn't include curl/curl.h

-Alex

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-05