cURL / Mailing Lists / curl-library / Single Mail


Re: Compilation errors using libcurll and mingw

From: Daniel Stenberg <>
Date: Thu, 22 Sep 2005 12:02:51 +0200 (CEST)

On Thu, 22 Sep 2005, Siddharth Vijayakrishnan wrote:

> /tmp/cchxm8a8.o(.text+0x1d5):getlog.c: undefined reference to
> `__imp__curl_easy_init'
> and so on for every libcurl call.

This is because for Windows, you need to define CURL_STATICLIB if you build
your application to use the static version of libcurl.

Without that define, it assumes the shared version and thus uses that __imp__

  Commercial curl and libcurl Technical Support:
Received on 2005-09-22