|
From: | Paul Crown |
Subject: | [Mingw-cross-env-list] wxWidgets winsock2.h Windows 7 |
Date: | Wed, 28 Aug 2013 14:02:01 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
Greetings,I am experimenting with cross compiling for Windows 7. My first error is regarding winsock2.h. I get a number of warnings about including winsock2.h before windows.h.
If I apply the attached patch which includes winsock2.h just after defs.h in wx/wx.h, the I can cross compile with both i686-w64-mingw32 and x86_64-w64-mingw32.
However, while it will compile, it won't execute. On a Windows 7 machine it immediately aborts without a SEGFAULT or any error message. Before I try to setup gdb for Windows 7, can you tell me if using x86_64-w64-mingw32 is an intended toolchain to compile for Windows 7?
Thanks. Paul
wxWidgets-2.9.4-winsock2.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |