Subject: Re: Windows Build

Re: Windows Build

From: Matthew Voss <ormris_at_ormris.us>
Date: Tue, 01 Sep 2015 15:32:39 -0700

Thanks for the input! I managed to find this email from a while back:
http://www.libssh2.org/mail/libssh2-devel-archive-2012-09/0029.shtml

I followed the instructions, and I was down to a single error.
Essentially, it can't find the declaration of "struct ocsp_response_st",
so it's giving me error C2059 (invalid typedef). This is available in
"crypto/ospf.h", but it isn't included in any other header files or in
the libssh2 code. I went ahead an inserted it into the appropriate
header file, but got a bunch of errors that I think are the results of
an undefined macro.

Here's some sample output, with the full output attached.
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(297): error C2143:
syntax error : missing '{' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(298): error C2143:
syntax error : missing '{' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(299): error C2059:
syntax error : '}'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(395): error C2143:
syntax error : missing ')' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(395): error C2081:
'CRYPTO_EX_new' : name in formal parameter list illegal
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(395): error C2143:
syntax error : missing '{' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(395): error C2143:
syntax error : missing ';' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(396): error C2143:
syntax error : missing ';' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(396): error C2059:
syntax error : ')'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(399): error C2143:
syntax error : missing ')' before '*'
1>C:\Program Files\GnuWin32\include\openssl/crypto.h(399): error C2081:
'CRYPTO_EX_DATA' : name in formal parameter list illegal

Are these macros provided by another library? Do they need to be
manually defined?

Thanks,
Matthew

On 08/27/2015 05:15 PM, Sagar Chandawale wrote:
> From the comments below on that link:
>
> You may need to add "libssh2d.lib":
> Linker->Input->Additional Dependencies. (and possibly "ws2_32.lib", if you
> get winsock related link errors).
> Also make sure you have "Debug_lib" added in:
> Linker->General->Additional Library Directories
>
> This helped me resolve the linking errors.
>
> Hope it helps.
>
> Thanks,
> Sagar
>
> On 27 August 2015 at 16:07, Matthew Voss <ormris_at_ormris.us> wrote:
>
>> Hi All,
>>
>> I've been Googling around for a build procedure to use with VS2010 or
>> higher. I found this:
>> http://www.chaosstuff.com/2013/07/build-libssh2-on-visual-studio-2010.html
>> . Unfortunately, it fails with linking errors. Has anyone managed to
>> build LibSSH2 under Visual Studio?
>>
>> Thanks,
>> Matthew
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>>
>
>
>
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2015-09-02