Subject: RE: Compiling libssh2 under x64 with Visual Studio 2010

RE: Compiling libssh2 under x64 with Visual Studio 2010

From: Nick Pateman <nick.pateman_at_certivox.com>
Date: Mon, 17 Sep 2012 10:15:07 +0000

Hi Alex,

What I'm trying to do is compile libCurl for x64 via the following instructions...

http://curl.haxx.se/mail/lib-2010-06/0232.html

It says I need to compile OpenSSL, zLib and libSSH2. I've got the other 2 compiling just fine but this one I'm stuck on.

I basically just opened with VC6 project that was in the source folder and updated it to VS2010 format via the wizard. I've downloaded the source a few times to make sure I haven't done anything wrong but get the same thing every time. I'm trying 32bit to start with, and I get the same problem with that build. I created an x64 configuration based on the 32bit one but the problem persists so I'm not quite sure what I've done wrong.

Nick.

------------------------------

Message: 3
Date: Mon, 17 Sep 2012 10:54:59 +0100
From: Alexander Lamaison <swish_at_lammy.co.uk>
To: libssh2 development <libssh2-devel_at_cool.haxx.se>
Subject: Re: Compiling libssh2 under x64 with Visual Studio 2010
Message-ID:
        <CADyPeTPRnc59Th6GnyM_egq2W-qnEudCTqPrT=ZoyQYL1jH4oQ_at_mail.gmail.com>
Content-Type: text/plain; charset=windows-1252

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-devel
Received on 2012-09-17