undefined reference to CallNtPowerInformation
觅路人 2017-04-25 11:26:03 C++程序在調用CallNtPowerInformation是显示“undefined reference to CallNtPowerInformation”,头文件包含
#include <stdio.h>
#include <cstdlib>
#include <Windows.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <Powrprof.h>
#ifdef __cplusplus
}
#endif
#define GetCPUTickCount() __rdtsc()
主要用来计算CPU的工作频率,但是在调用CallNtPowerInformation时出现问题