- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试测量 CPU 时间。它在 Win 32 上运行良好,但在 64 位上,它说:
error LNK2019: unresolved external symbol __imp_GetProcessTimes referenced in function "unsigned int __cdecl getWINTime(void)" (?getWIN32Time@@YAIXZ)
对于 FileTimeToSystemTime
也有类似的错误
error LNK2019: unresolved external symbol __imp_FileTimeToSystemTime referenced in function "unsigned int __cdecl getWINTime(void)" (?getWIN32Time@@YAIXZ)
功能本身不是那么重要,没有问题。
这个调用在 64 位架构中是合法的还是什么?
这不是唯一的问题,它似乎没有正确链接到 64 位 Windows 上的库。
是否有我应该设置的设置才能正确链接?
最佳答案
您是否为两个环境build设置并列出了相同的导入库。这两个函数都在 kernel32.dll 中。
关于c++ - 使用 GetProcessTimes 和 FileTimeToSystemTime 的 CPU 处理时间在 64 位 win 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3071652/
我正在围绕 Win32 FILETIME 结构编写一个简单的包装器。 boost::datetime 拥有我想要的大部分内容,除了我需要我最终使用的任何日期类型来毫无问题地插入 Windows API
我想把FileTime改成SystemTime,但是程序总是崩溃,为什么? 提前致谢。 FILETIME *Kernel_Time; HANDLE Process = OpenProcess ( PR
FILETIME Kernel_Time; HANDLE Process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, 0); GetProcessTimes(Pr
我正在尝试测量 CPU 时间。它在 Win 32 上运行良好,但在 64 位上,它说: error LNK2019: unresolved external symbol __imp_GetProce
我是一名优秀的程序员,十分优秀!