i tried to compile horde3d via cmake with gcc on windows, but the getTime() function of the Timer class
Code:
#ifdef PLATFORM_WIN
// Make sure that time is read from the same CPU
DWORD_PTR threadAffMask = SetThreadAffinityMask( GetCurrentThread(), _affMask );
// Avoid the reordering of instructions by emitting a serialization instruction
#ifdef _MSC_VER
_asm { CPUID };
#else
asm volatile("cpuid"); // <------ THIS LINE!
#endif
// Read high performance counter
LARGE_INTEGER curTick;
QueryPerformanceCounter( &curTick );
// Restore affinity mask
SetThreadAffinityMask( GetCurrentThread(), threadAffMask );
return (double)curTick.QuadPart / (double)_timerFreq.QuadPart * 1000.0;
causes a crash in every application (for example the demos)
I have no idea what that assembler thing is doing, by commenting it out it works, but thats a dirty "solution" for that problem...
thanks, hs0