cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: VC6 and static libcurl problem

From: Cory Nelson <phrosty_at_gmail.com>
Date: Sat, 4 Jun 2005 19:49:09 -0700

Make sure you are #defining CURL_STATICLIB before including the libcurl headers

On 6/4/05, a <chris_at_redpawsystems.com> wrote:
>
>
>
> I am trying to statically link libcurl 1.17.0 to a vc6 project, libcurl
> compiles fine (nmake /f Makefile.vc6 cfg=release-ssl) but when I try to
> build my project I get linker errors.
>
> error LNK2001: unresolved external symbol __imp__FUNCTION_NAME
>
> I get this error with all libcurl functions. A bit of searching suggests a
> difference in run time libraries, the libcurl library is compiling with the
> /MD switch while my project has /ML. I can't seem to fix either and I can't
> use the libcurl.dll.
>
> Does anyone know how to fix this problem? Help is greatly appreciated.
>
>
>
> Thanks in advance
>
>

-- 
Cory Nelson
http://www.int64.org
Received on 2005-06-05