curl-library
Re: compiling project using curl on msvs2010
Date: Mon, 23 Jan 2012 15:12:42 +0100
"Eugeny Melamud" <Eugeny.Melamud_at_lanit-tercom.com> wrote:
> I'm developing a dll that uses libcurl. I builded lib with vc6curlsrc.dsw
> project (I found it into srcfolder of curl distributive).
Aheam, I think vc6curlsrc.dsw is for building the curl executable. You probably
need to build with vc6libcurl.dsw. But where is .\lib\vc6libcurl.dsp that's
refered to in the *.dsw file? So the whole VC builds methods seems confusing
and "out-of-whack" with the FAQ. See:
http://curl.haxx.se/docs/faq.html#Link_errors_when_building_libcur
Target: static lib. import lib for libcurl*.dll.
-----------------------------------------------------------
MSVC (release): libcurl.lib libcurl_imp.lib
MSVC (debug): libcurld.lib libcurld_imp.lib
But if you see in 'winbuild/MakefileBuild.vc', the import-lib for a release build
is named 'libcurl.lib'. And the import-lib for a debug-build is named
'libcurl_debug.lib'. Don't know when that happened. Anyway, the winbuild-dir
seems most up-to-date. Try that build-method instead.
> After I add libcurl.lib to dependences of profect I get
>
> main.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init
Because the linker expects to see import symbols and the 'libcurl.lib' you provided
didn't have any. Depending on how you build the curl-lib, add the correctly named
import library. Hope you know the difference between a static library and an import
library (?).
--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-23