curl-library
Re: Vanilla curl on Windows with Visual Studio 2010 - compiles but still unresolved symbols
Date: Mon, 3 Jan 2011 17:04:37 +0100
hi,
On Mon, Jan 3, 2011 at 2:09 AM, Ryan <superryan_at_gmail.com> wrote:
> I'm going crazy. I downloaded the 7.21.3 source to c:\7.21.3. Then, I
> followed the documentation, opened the msvc command line tool and tried:
>
> nmake vc
>
> I also tried:
>
> cd lib\
> nmake /f CFG=release
>
> Both methods build the library.
>
> But, when I go to Visual Studio 2010 and try to run simple.c
> (http://curl.haxx.se/libcurl/c/simple.html) I get linker errors. I have /MT
> set. I also have my dependencies set to libcurl.lib. I tried defining
> CURL_STATICLIB in my preprocessor definitions but I still have the problem.
>
> Am I missing something obvious?
Using WIN32 and CURL_STATICLIB works fine here, as long as you use a
static build of libcurl. Are you sure you added the flag to all
configurations?
Cheers,
-- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-01-03