[Openal] Some frustrations with openAL sample code
scottm at obsessionaudio.com
Fri Feb 29 14:23:05 PST 2008
Scott Mayo wrote:
> ...it started doing discovery about sizes of types and availability of
> functions, which all went pretty well until it tried to find gettimeofday.
> This is on XP, I haven't gotten home to try this on Vista yet.
I have a wild theory, based on some weirdness I found CMakeError.log. At one
point it goes and tries a compile, apparently to test for the presence of
windows.h. For some reason, and I have never understood this, windows.h
gives a compile error everywhere I compile, unless you force the version
number, like this:
#define _WIN32_WINNT 0x0500
If you don't do this, you get the incomprehensible
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinBase.h(2961) : fatal error C1189: #error :
No idea what that's about, so I always just define _WIN32_WINNT 0x0500 in my
code and go on, and everything is fine. Cmake clearly doesn't know that
trick. I'm going to guess it saw an error, decided it's not in a Windows
environment, and tried some unix platform tests, which of course are going
to fail here.
Anyone know what's too old, and why?
View this message in context: http://www.nabble.com/Some-frustrations-with-openAL-sample-code-tp15759360p15768981.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
More information about the Openal