On Tue, Jul 27, 2010 at 7:37 PM, JonY <jo...@users.sourceforge.net> wrote: > On 7/27/2010 21:30, Sisyphus wrote: >> 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 >> > > Hi, > > you're supposed to include winsock2.h before windows.h, as windows.h by > default includes the incompatible and older winsock.h. > > Plenty of software packages make this mistake. You'll need to fix up > this assumptions.
Well, I think he is using an old header-set, obviously. -- Ozkan ------------------------------------------------------------------------------ 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 Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public