> 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 Thanks Noel