cURL / Mailing Lists / curl-library / Single Mail

curl-library

Again problem with static linking

From: Kublo Enter <kubaqw1_at_wp.pl>
Date: Sat, 21 Dec 2013 21:37:11 +0100

I have undefined reference to `_imp__curl_easy_init'.
I downloaded last package for windows generic. 
I'm using CodeBlocks with latest MinGW. 

I set search directories

Compiler:

curl-7.33.0-devel-mingw32\include

Linkier

curl-7.33.0-devel-mingw32\lib

I set linkier options 

-lcurl

Also I set preprocessor definition: CURL_STATICLIB.

 

I combined various settings: CURL_STATIC, compiler search path curl-7.33.0-devel-mingw32\include\curl, but always i have linkier error. 

 

Build log:

mingw32-g++.exe -Lcurl-7.33.0-devel-mingw32\lib  -o bin\Release\Qpr.exe obj\Release\FilePatcher.o obj\Release\Ff.o obj\Release\main.o obj\Release\MD5.o obj\Release\WRegistry.o   -s -lcurl  

obj\Release\FilePatcher.o:FilePatcher.cpp:(.text+0x16c): undefined reference to `_imp__curl_easy_init'

 

 


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