winxp系統,使用VS2010,
在使用boost中的thread中的sleep的時候出現
“無法定位程序輸入點GetTickCount64 在動態鏈接庫kernel32.dll上”的錯誤,
在網上搜索了解決方案,例如:(http://zhidao.baidu.com/question/525243508.html)都無法解決。在參考http://software.intel.com/en-us/forums/topic/345090后得到解決方法:
1.在“stdafx.h”中#include <SDKDDKVer.h>之前定義:#define _WIN32_WINNT 0x0501
2.重新生成解決方案
至此可以正確使用boost::thread::sleep()或者boost::this_thread::sleep()