john-h

winxp系统,在使用boost中的thread中的sleep的时候出现“无法定位程序输入点GetTickCount64 在动态链接库kernel32.dll上”的错误,

1.在引用boost库之前(我是在stdafx.h最后):

#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0501

2.重新生成解决方案

至此可以正确使用boost::thread::sleep()或者boost::this_thread::sleep()

分类:

技术点:

相关文章:

  • 2022-01-25
  • 2022-02-26
  • 2021-06-16
  • 2022-01-22
  • 2021-07-03
  • 2021-11-27
  • 2021-10-21
猜你喜欢
  • 2021-06-06
  • 2022-01-10
  • 2022-01-11
  • 2021-12-07
  • 2022-12-23
  • 2021-11-02
相关资源
相似解决方案