Can't compile my first libcurl app
Date: 15 Jan 2002 21:23:21 -0500
I'm trying to compile my first curl app. Technically, it's not mine,
I'm just using the sample "simple.c" to test the library.
I'm not a c developer, (but I did have to learn it a while back) so I'm
at a disadvantage in troubleshooting this.
I have downloaded the curl-ssl-7.9.2-1.src.rpm and built the binary
rpms. I then installed both the curl-ssl-7.9.2-1.i386.rpm and the
curl-ssl-devel-7.9.2-1.i386.rpm files. ( I rebuilt them due to
different openssl versions) Install went fine.
Typing gcc simple.c presents me with the following messages:
/tmp/cc4ETz4n.o: In function `main':
/tmp/cc4ETz4n.o(.text+0x21): undefined reference to `curl_easy_init'
/tmp/cc4ETz4n.o(.text+0x41): undefined reference to `curl_easy_setopt'
/tmp/cc4ETz4n.o(.text+0x57): undefined reference to `curl_easy_setopt'
/tmp/cc4ETz4n.o(.text+0x65): undefined reference to `curl_easy_perform'
/tmp/cc4ETz4n.o(.text+0x78): undefined reference to `curl_easy_cleanup'
collect2: ld returned 1 exit status
I was able to confirm that all of the samples produce similar problems
(except for gtk which is missing gtk stuff...).
Should I try a different curl rpm, is it my gcc or do you think it's
I tested my curl binaries, they seem to work fine. (http and https)
Any help is apreciated,
Received on 2002-01-16