2010/7/27 Sisyphus <[email protected]>:
> Hi,
>
> I have binaries for gcc-4.4.4 20100208 and gcc-4.6.0 20100414
> (cross-compilers).
> The former builds libssh2-1.2.6 fine (in msys shell), but the latter
> doesn't.
>
> The errors produced by 4.6.0 (during the 'make' stage) are attached in
> m.txt.
>
> Any ideas on how this change of behaviour from one compiler to the other has
> come about ?
>
> The first error is:
> libssh2_priv.h: In function 'writev':
> libssh2_priv.h:121:24: error: 'LPWSABUF' undeclared (first use in this
> function)
> libssh2_priv.h:121:24: note: each undeclared identifier is reported only
> once for each function it appears in
>
> I can get rid of that error by #include'ing winsock2.h near the beginning of
> libssh2_priv.h (immediately after windows.h has been #include'd) ... but
> that doesn't help with the subsequent "redefinition" and "conflicting types"
> errors.
>
> Cheers,
> Rob
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
Well, this issue is reasoned by wrong order of <windows.h> and
<winsock2.h> includes. In general it is better to include first
<winsock2.h> and then the <windows.h> (or other platform headers
(Side-note winsock2.h includes itself windows.h). I thought we solved
this issue for allowing redefinition of winsock.h up to winsock2.h,
but well, for me it worked.
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public