cURL / Mailing Lists / curl-library / Single Mail


Re: Build error: with_ssh2=static, VC9,

From: Jan Ehrhardt <>
Date: Wed, 24 Oct 2012 10:06:10 +0200

Jan Ehrhardt in gmane.comp.web.curl.library (Wed, 24 Oct 2012 09:42:48
>Guenter in gmane.comp.web.curl.library (Wed, 24 Oct 2012 04:21:59
>>Hi Jan,
>>sorry, this one got udner the radar ... :-P
>No big deal. That is why I pinged ;-)
>>I agree that since we have agent support we now need user32.lib at least
>>when using a static libssh2.lib ...
>>but since since the libssh2 DLL links itself against user32.lib why do
>>we need it there too??
>You might be right. I linked with the same libssh2_a.lib, which contains
>a reference to the external symbols __imp__FindWindowA and
>__imp__SendMessageA. I did not recompile libssh2 as shared in stead of

OK, recompiled libssh2. It produces a libssh.lib (without the _a), that
seems do do nothing else than link all the functions to libssh2.dll.
This libssh2.lib compiles fine in curl WITH_SSH2=dll.

So line 131 can stay at
SSH2_LIBS = libssh2.lib

But and the '_debug' in line 135 does not seem te be needed.
SSH2_LIBS = libssh2_a.lib user32.lib
compiles fine WITH_SSH2=static.


List admin:
Received on 2012-10-24