[Xapian-discuss] Compiling Omega 1.2.9 on Windows 7 64-Bit
Olly Betts
olly at survex.com
Thu Mar 29 03:55:05 BST 2012
On Wed, Mar 28, 2012 at 03:27:10AM -0400, Noel Huebers wrote:
> > Hmm, can you find GlobalMemoryStatusEx in your compiler headers? It is
> > declared in winbase.h in the Debian mingw-w64-dev cross-compiler
> > package.
>
> This is from the winbase.h (in mingw/include):
>
> #if (_WIN32_WINNT >= 0x0500)
> WINBASEAPI BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX);
> #endif
What happens if you define that suitably?
E.g. add this near the top of the source file which was failing to
compile:
#define _WIN32_WINNT 0x0500
Cheers,
Olly
More information about the Xapian-discuss
mailing list