cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Build error: with_ssh2=static, VC9, makefile.vc

From: Guenter <lists_at_gknw.net>
Date: Wed, 24 Oct 2012 04:21:59 +0200

Hi Jan,
sorry, this one got udner the radar ... :-P

Am 24.10.2012 00:02, schrieb Jan Ehrhardt:
> Ping. Did Daniel or Gunther already have a chance to look at the
> proposed patches below?
>
>> Moreover, libssh2 includes user32.lib while linking.
>>
>> So, I changed line 135 in winbuild/MakefileBuild.vc from
>> -SSH2_LIBS = libssh2_a_debug.lib
>> into
>> +SSH2_LIBS = libssh2_a_debug.lib user32.lib
>>
>> And libcurl builds fine again.
>>
>> Then I checked the preceding line 131 as well:
>> -SSH2_LIBS = libssh2.lib
>> +SSH2_LIBS = libssh2_a.lib user32.lib
>>
>> libssh2_a.lib is better than libssh2.lib, because libssh2 produces an
>> _a.lib as standard, just like curl. And the user32.lib is also needed
>> for with_ssh2=dll.
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??

Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-10-24