Curl Programming for the C language of Curl Library

Source: Internet
Author: User
Tags curl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.