[Top][All Lists]

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

Re: [Mingw-cross-env-list] Error building mxe/src/gtk2-test.c

From: Alex Zelid
Subject: Re: [Mingw-cross-env-list] Error building mxe/src/gtk2-test.c
Date: Tue, 9 Dec 2014 12:43:17 +0200

The compiled example-0.exe worked fine on Ubuntu 14.10 x64 Wine, on Windows 8.1 x64 
But on Windows XP x32 it crashes with the error 'the procedure entry point if_nametoindex could not be located in the dynamic link library IPHLPAPI.dll'

if_nametoindex - http://msdn.microsoft.com/en-us/library/windows/desktop/bb408409(v=vs.85).aspx is available in WinAPI since Windows Vista

Looks like a Mingw-w64 issue - https://gitorious.org/w64/w64/source/fb4f75ada56c769927f18aa57de129361d846429:mingw-w64-headers/include/netioapi.h

Someone fixed his own code by adding conditional directive - https://github.com/miniupnp/miniupnp/issues/85

Is there a way to tell mingw-w64 that the minimal supported WinApi should be targeted to Windows XP?


reply via email to

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