无法定位程序输入点GetTickCount64 在动态链接库kernel32.dll上

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()

posted @ 2016-11-01 10:51  程序员大叔  阅读(17089)  评论(1编辑  收藏  举报