Thread: Error: curl/curl.h no such file or dictionary - But the file exist ?

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    8

    Error: curl/curl.h no such file or dictionary - But the file exist ?

    Hi! I have installed this libcurl.
    I move(copy and paste) the .h files and other files like dlls and exe to bin and lib folders (in the compiler folder)

    I use mingw32 compiler. But when i compile i got an error who tell me that the .h files i include in my C program, does not exist. But i can se them.

    There are in the folder with other .h files.

    Here is the file i did download.
    http://www.gknw.net/mirror/curl/win3...el-mingw32.zip

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I move(copy and paste) the .h files and other files like dlls and exe to bin and lib folders (in the compiler folder)
    This is not the thing to do.

    You should have unzipped them into say c:\mylibs in the first instance, from where you would have curl-7.23.1-devel-mingw32/include and /curl-7.23.1-devel-mingw32/lib

    In the compiler settings for your project using curl, you would specify
    Additional Search directory c:/mylibs/curl-7.23.1-devel-mingw32/include
    Additional library directory c:/mylibs/curl-7.23.1-devel-mingw32/lib
    Additional library curl

    The last one assumes that mingw follows the usual Unix convention where the "lib" prefix and ".a" suffix is omitted. Look at other examples. If they say "libfoo.a", then you should say "libfoo.a" as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. curl problem
    By pramodjha in forum C Programming
    Replies: 1
    Last Post: 03-29-2011, 06:20 AM
  2. cURL and piping
    By carrotcake1029 in forum Windows Programming
    Replies: 1
    Last Post: 09-25-2010, 02:35 PM
  3. curl problem
    By cnu_sree in forum C Programming
    Replies: 5
    Last Post: 10-27-2007, 05:58 AM
  4. cURL class
    By _izua_ in forum C++ Programming
    Replies: 9
    Last Post: 10-14-2007, 07:28 AM
  5. Curl out of straight hair
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-10-2003, 07:13 AM