cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: memory leak? help needed

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 Oct 2006 10:08:35 +0200 (CEST)

On Thu, 12 Oct 2006, Tom Jerry wrote:

> I tried doing what you suggested, but I have a weird problem - my
> application doesn't link because it cannot find the curl_memdebug function:
> error LNK2001: unresolved external symbol "__declspec(dllimport) void
> __cdecl curl_memdebug(char const *)" (__imp_?curl_memdebug@@YAXPBD_at_Z)
> ..\..\..\bin/XmlHttpMc.exe : fatal error LNK1120: 1 unresolved externals
>
> I made sure I'm linking with the new created libcurl (with the CURLDEBUG
> flag), and even inspected the dll using 'depends' tool and saw that the
> function do exist and it is exported. Any ideas?

I'm guessing you might need to add a line like

   CURL_EXTERN void curl_memdebug(const char *logname);

in the public header file (include/curl/curl.h) so that your app will use it
correctly.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-10-12