Thread: Object File error when compiling a libcurl program in Gcc?

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    6

    Object File error when compiling a libcurl program in Gcc?

    Does anyone know what this error means? I'm trying to compile this [http://curl.haxx.se/libcurl/c/simple.html] with the MinGW Gcc compiler and libcurl library []cURL: Download Wizard.

    C:\...AppData\Local\Temp\ccOCE2LV.o:undefined reference to '__imp_curl_easy_init'

    Any help would be much appreciated- Thanks

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Errors compiling against 3rd party libraries are usually best answered by looking at the appropriate library forums/mailing lists and searching their archives. In fact, a quick Google search for "undefined reference to '__imp_curl_easy_init'" turned up the following on the cURL website: Curl: Re: Compiling on MingW32 without a DLL. The cURL website even has a FAQ entry about it, so that's probably a good place to start.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    6
    Ah, just realised I was searching for the solution to this on google.co.uk rather than .com...

    Thanks for the info anyway!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined reference to.. probably Makefile problem
    By mravenca in forum C Programming
    Replies: 11
    Last Post: 10-20-2010, 04:29 AM
  2. Buidl Library with ./configure script
    By Jardon in forum C Programming
    Replies: 6
    Last Post: 07-24-2009, 09:36 AM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM