سؤال

I had a sample code for CUDA VIDEO ENCODING which originally written for windows, after preparing Make file and trying to compile it, it come to error because of HRESULT , LARGE_INTEGER and DWORD data type that they are specific to windows. how can I overcome this problem ?

LARGE_INTEGER m_liUserTime0, m_liKernelTime0;
DWORD m_dwStartTime;

is there any alternative for that ?

هل كانت مفيدة؟

المحلول

You could define these types yourself:

typedef unsigned long long LARGE_INTEGER;
typedef unsigned long DWORD;
typedef long HRESULT;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top