Subject: Re: windows build

Re: windows build

From: Simon Josefsson <simon_at_josefsson.org>
Date: Thu, 27 May 2010 08:28:58 +0200

theclerk <theclerk_at_flipthebit.com> writes:

> I've been following the past couple of days with changes and progress
> to the windows build. I can get it to build cleanly (VC9/static),
> however I get the following errors when trying to build the scp
> example. It appears that although the lib compiles, its not correctly
> building (fact that an external app can't find libssh2_init). When
> viewing the symbols with dumpbin the lib shows the function as UNDEF.
>
> I'm linking libssh against OpenSSL (ssleay32, libeay32), zlib, and ws2_32.
>
> 1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_exit
> 1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_init
> 1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol
> __libssh2_init_if_needed
> 1>libssh.lib(openssl.obj) : error LNK2001: unresolved external symbol
> __libssh2_init_if_needed

I suspect src/global.c is missing from the Windows build scripts.

> 1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol
> _libssh2_keepalive_send

And src/keepalive.c.

Both files were added relatively recently.

> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _inflateInit_
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _deflateInit_
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _inflate
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _deflate
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _inflateEnd
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _deflateEnd

This is zlib. Are you sure you linked libssh2 against zlib?

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-05-27