C-Language Curl programming
[Email protected] exercise]# Gcc-wall-o curltest curltest.c
/tmp/ccosvani.o:in function ' main ':
CURLTEST.C: (. text+0x2a): Undefined reference to ' curl_easy_init '
CURLTEST.C: (. text+0x53): Undefined reference to ' curl_easy_setopt '
CURLTEST.C: (. text+0x5c): Undefined reference to ' curl_easy_perform '
CURLTEST.C: (. text+0x68): Undefined reference to ' Curl_easy_cleanup '
Collect2:ld returned 1 exit status
Cause: The compiler could not find the Curl library file
Workaround: After determining the installation library, Gcc-wall-o curltest curltest.c-l Curl
Installing Curl
1. Enter the directory where the package is compressed
# Cd/root/soft
2. Unzip the installation package
# TAR-ZXF Curl-7.42.1.tar.gz
3. Enter the unpacked installation package directory
# CD curl-7.42.1
4. Configuration
#./configure--prefix=/usr/local/curl
5. Installation
# make; Make install
Curl Programming for the C language of Curl Library