On 17 September 2012 10:32, Nick Pateman <nick.pateman_at_certivox.com> wrote:
> Hi there,
> I’m trying to compile libssh2 under x64 on Visual Studio 2010 but am not
> having much luck at the moment.
>
> I added the curl include path to the configuration which eliminates the
> missing curl.h references. Then unfortunately I get 2229 errors.
Are you sure you're trying to compile libssh2? Or are you maybe trying
to compile libcurl? libssh2 doesn't depend on curl.h so there won't
be any references to it to eliminate.
> Many thanks in advance for any help. I’ve put an excerpt of some of the
> errors below…
>
> Error 201 error C2081: 'key_exchange_state_t' : name in formal
> parameter list illegal
> c:\pop\libcurl_x64\libssh2-1.4.2\libssh2-1.4.2\src\libssh2_priv.h 1010
> 1 libssh2
I've no idea why it would object to key_exchange_state_t as it's
defined in the same file. Something in your build is very broken.
Have you got the correct libssh2_config.h in you include path? The
one from the win32 directory?
Alex
-- Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org) _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2012-09-17