cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Again problem with static linking

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 22 Dec 2013 11:11:20 +0100

On Sat, Dec 21, 2013 at 02:22:06PM -0800, Nacho Man wrote:
> On Saturday, December 21, 2013 3:46 PM, Kublo Enter <kubaqw1_at_wp.pl> wrote:
>
> I have undefined reference to `_imp__curl_easy_init'.
>
> I combined various settings: CURL_STATIC, compiler search path curl-7.33.0-devel-mingw32\include\curl, but always i have linkier error. 
>
> I know this probably won't work, it's just a suggestion.  On my system, which is Linux, I have to make sure I set the CXXFLAGS for C++ files.  Are you doing that or just setting your CFLAGS?  Also, on my system, I need to tell the compiler where to look for the curl library with something like LDFLAGS="-L/your/path/to/libcurl" LIBS="-lcurl".   Just a thought.

http://curl.haxx.se/docs/faq.html#Link_errors_when_building_libcur

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-22