AndroidNDK 加载库("KERNEL32.DLL")

Android NDK LoadLibrary("KERNEL32.DLL")

有没有办法在 Android NDK 中加载 kernel32.dll 库?

我正在尝试从中提取 GetTickCount 和 GetTickCount64 函数,但在尝试 运行 LoadLibrary("KERNEL32.DLL"):

时出现此错误
Function 'LoadLibrary' could not be resolved

有什么获取 GetTickCount 和 GetTickCount64 的建议吗?

Android 是 Linux,而不是 Windows。您需要使用 Linux API。使用 clock_gettime 而不是 GetTickCount (example).