include boost / thread.hpp无法启动

时间:2013-06-26 03:24:36

标签: boost boost-thread

如果我#include并且没有创建任何实例,编译成功,但无法启动,堆栈是:

   ntdll!RtlIpv4StringToAddressExW+0xb54c
   ntdll!RtlLockHeap+0x252
   Test!operator new+0xf
   Test!boost::exception_detail::get_static_exception_object<boost::exception_detail::bad_alloc_>+0xb7
   Test!QueryPerformanceFrequency+0x16fa
   Test!_cinit+0x5e
   Test!WinMainCRTSartup+0x143
   kernel32!ProcessIDToSessionId+0x209

我的环境是win7 x64 sp1 + vc71 + boost1.46(1.52也测试) 请帮帮我。

1 个答案:

答案 0 :(得分:0)

我用boost / thread / thread.hpp修复了boost / thread.hpp,买了为什么?