lists.zerezo.com


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

***BOGO*** Re: [Mingw-users] Missing OpenThread?



On 2008-06-18 22:34Z, Jason Cipriani wrote:
> I seem to be missing OpenThread. The following program:
[...]
> Fails to compile complaining about OpenThread being undefined. A look
> in MinGW's windows.h reveals:
> 
> #if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
> WINBASEAPI HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
> #endif
> 
> I am not sure why _WIN32_WINNT is not >= 0x0500 -- this is XP it
> should be 0x0501 (what's the deal here?):
> 
> http://msdn.microsoft.com/en-us/library/aa383745(VS.85).aspx

That msdn page says what minimum value you need to specify for
_WIN32_WINNT and other macros based on whatever minimum msw
version your program requires. For example, compile with
  -D_WIN32_WINNT=0x0501
your program supports only xp and later.

This is documented in 'w32api.h', and has often been discussed
here--see the archives.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users