Thread: how to add libcurl library?

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    64

    how to add libcurl library?

    how to add libcurl library to my code blocks compiler.


    i downloaded it but doesnot know where to place it.and dont know that i downloaded the right version of it.please help.????

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You should also mention:

    1) Your operating system.
    2) exactly how you installed libcurl (eg, from source? a distro package?)
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    64
    windows 7.

    cURL - Download

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    64
    reply plz!

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    FAQ-Compiling (general) - CodeBlocks

    It is best/safer to add the settings to your project!

    For your project :
    - Right click on the project then select Build options
    - Select the directories tab
    - Add the required paths for compiler and linker.
    - Add your specific libraries in the linker tab.
    - Pay attention to project settings and target settings.
    Tim S.

  6. #6
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    There's libCURL instructions in the file when you download it, telling you how to install. If you still can't get it to work, make sure you've used Google and their site before asking.

    Not that it's specifically relevant, but many of the things in the library can actually be done manually, especially if you're just doing simple POST/GET requests. Before relying on a library which is not necessarily portable or efficient, see if there's a way to do it using built-in functions.

  7. #7
    Registered User
    Join Date
    Nov 2011
    Posts
    64
    i donot know which file i should link.there are many files with libcurl download link.which i should link and where i should post them.

  8. #8
    Registered User
    Join Date
    Nov 2011
    Posts
    64
    ????

  9. #9
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by danishzaidi View Post
    how to add libcurl library to my code blocks compiler.
    FYI: Code::Blocks is NOT a compiler!

    Figure out which compiler you are using.

    Figure out the name of library you wish to use.

    Tim S.

  10. #10
    Registered User
    Join Date
    Nov 2011
    Posts
    64
    it is mingW. library is libcurl.

  11. #11
    Registered User
    Join Date
    Nov 2011
    Posts
    64
    help plz.

  12. #12
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Google "mingw libcurl" and a surprising amount of results come up that will help you. There's at least five pages that relate to your problem on the first page alone, and it's very hard to believe that you actually tried to search first.

    Also, stop bumping the thread literally 1-3 minutes after you post; it's ....ing annoying and pointless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. libcurl and Javascript
    By Rodaxoleaux in forum C++ Programming
    Replies: 6
    Last Post: 12-24-2011, 02:42 PM
  2. libcurl to file
    By starternewb in forum C Programming
    Replies: 1
    Last Post: 03-15-2011, 07:45 AM
  3. libcurl with ftps
    By Elkvis in forum Linux Programming
    Replies: 5
    Last Post: 04-03-2010, 05:08 PM
  4. Installing libcurl library
    By samus250 in forum C Programming
    Replies: 4
    Last Post: 04-01-2008, 07:28 PM
  5. help with libcurl
    By ltcabral in forum C Programming
    Replies: 2
    Last Post: 03-27-2008, 01:05 PM