mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] wxWidgets winsock2.h Windows 7


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] wxWidgets winsock2.h Windows 7
Date: Thu, 29 Aug 2013 11:59:34 +1000

On 29/08/2013, at 5:02 AM, Paul Crown <address@hidden> wrote:

> 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.

Take a look at the mingw-w64 wiki about about this:

http://sourceforge.net/apps/trac/mingw-w64/wiki/winsock2.h%20include%20order

There are several approaches - from memory, including winsock2.h instead of 
windsock.h is usually what you want.

> 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?

Yes, Windows 7 is all I've tested 64-bit on for the past few years. The gdb 
included with mxe should be easy to use, just `make gdb` and you'll find it in 
`mxe-dir/usr/x86_64-w64-mingw32/bin/gdb.exe`.

Cheers,

Tony




reply via email to

[Prev in Thread] Current Thread [Next in Thread]