Thread: Libcurl program compiling problem

  1. #1
    Registered User
    Join Date
    Mar 2018
    Posts
    12

    Libcurl program compiling problem

    I'm trying an example of libcurl, but when I compile it, I get this error:Libcurl program compiling problem-curlerror-jpg

    I don't understand it, can someone help me about this problem? :v

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    You need to add the curl library to the link step.
    A little inaccuracy saves tons of explanation. - H.H. Munro

  3. #3
    Registered User
    Join Date
    Mar 2018
    Posts
    12
    Quote Originally Posted by john.c View Post
    You need to add the curl library to the link step.
    You mean, the linker?

  4. #4
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    Yes. There should be somewhere in the IDE to add libraries to the linker. You need to add curl. From the command line you would write -lcurl.
    A little inaccuracy saves tons of explanation. - H.H. Munro

  5. #5
    Registered User
    Join Date
    Mar 2018
    Posts
    12
    I added the "curl.h" to the linker, but nothing changed :v

  6. #6
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    Well, you shouldn't add curl.h to the linker!
    That's just the header file.
    You need to add the library.
    Try "curl", "libcurl", "-lcurl", ...
    I have no idea how your IDE works.
    A little inaccuracy saves tons of explanation. - H.H. Munro

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problems compiling C with libcurl headerfile
    By sandeep080 in forum Networking/Device Communication
    Replies: 6
    Last Post: 08-02-2011, 02:08 AM
  2. Replies: 2
    Last Post: 03-30-2011, 10:39 AM
  3. to get output of libcurl program
    By little in forum C++ Programming
    Replies: 1
    Last Post: 02-21-2011, 06:52 AM
  4. libcurl program no output
    By shady_Dev in forum Linux Programming
    Replies: 5
    Last Post: 01-04-2008, 04:25 AM
  5. Problem Compiling Program
    By wco5002 in forum C++ Programming
    Replies: 13
    Last Post: 11-06-2007, 12:56 PM

Tags for this Thread