Boost C++ Libraries: Ticket #11477: Boost's thread and std's thread conflict https://svn.boost.org/trac10/ticket/11477 <blockquote> <p> error C2872: “xtime”: Ambiguous symbol </p> </blockquote> <p> 1&gt; maybe is “D:\tools\vs2013\VC\include\thr/xtimec.h(23) : xtime” 1&gt; or “D:\libs\boost_1_58_0\boost/thread/xtime.hpp(35) : boost::xtime” </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11477 Trac 1.4.3 viboes Thu, 20 Aug 2015 23:02:55 GMT status, component changed; owner set https://svn.boost.org/trac10/ticket/11477#comment:1 https://svn.boost.org/trac10/ticket/11477#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> Ticket viboes Thu, 20 Aug 2015 23:11:07 GMT <link>https://svn.boost.org/trac10/ticket/11477#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11477#comment:2</guid> <description> <p> Please, could you provide a simple example. Are you using using namespace boost? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 03 Sep 2015 07:08:53 GMT</pubDate> <title>type changed https://svn.boost.org/trac10/ticket/11477#comment:3 https://svn.boost.org/trac10/ticket/11477#comment:3 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Support Requests</span> </li> </ul> Ticket viboes Sun, 27 Sep 2015 13:48:50 GMT <link>https://svn.boost.org/trac10/ticket/11477#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11477#comment:4</guid> <description> <p> PING !!! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 11 Oct 2015 19:04:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11477#comment:5 https://svn.boost.org/trac10/ticket/11477#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> Ticket anonymous Thu, 28 Sep 2017 03:44:27 GMT <link>https://svn.boost.org/trac10/ticket/11477#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11477#comment:6</guid> <description> <p> 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">CountersMg</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">HttpServerSession</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; INiceNetServer.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">ImpNetLog</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">InPublicPreDefine</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">NetCountersInstanceMg</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">NetLogMg</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">NiceHttpReq</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NiceIDMg.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">NiceLog</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt;C:\vs15\VC\include\thr/xtimec.h(24): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xtimec.h(26): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xtimec.h(27): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\chrono(1014): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthreads.h(33): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthreads.h(56): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthreads.h(82): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthread(78): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthread(99): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(308): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt; C:\vs15\VC\include\mutex(440): note: 参见对正在编译的类 模板 实例化“std::unique_lock&lt;_Mutex&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(54): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;9&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(53): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;8&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(52): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;7&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(51): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;6&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(50): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;5&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(49): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;4&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(48): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;3&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(47): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;2&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(46): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;1&gt;”的引用 1&gt;C:\vs15\VC\include\mutex(378): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(624): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(637): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(646): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(565): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(626): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(629): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(663): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(668): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(748): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(877): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt; <a class="missing wiki">NiceNet</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">NiceNetCounter</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">NormalThreadMg</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; Scheduler.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; 正在生成代码... 1&gt; 正在编译... 1&gt; Scheduler_impl.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPClient.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPClientSession.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPServer.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPServerSession.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; <a class="missing wiki">WebSocketSession</a>.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; XZhtTCPBase.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; 正在生成代码... ========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ========== </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 11 Apr 2018 06:45:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11477#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11477#comment:7</guid> <description> <p> Hi, </p> <blockquote> <p> I'm facing the same issue. How to resolve this issue, please help </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 13 Apr 2018 07:09:48 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/11477#comment:8 https://svn.boost.org/trac10/ticket/11477#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">worksforme</span> </li> </ul> <p> Please, reopen the issues when you found them again. </p> Ticket viboes Fri, 13 Apr 2018 07:11:33 GMT <link>https://svn.boost.org/trac10/ticket/11477#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11477#comment:9</guid> <description> <p> Please, could you report the compiler error? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 15 Sep 2018 03:52:43 GMT</pubDate> <title>type changed https://svn.boost.org/trac10/ticket/11477#comment:10 https://svn.boost.org/trac10/ticket/11477#comment:10 <ul> <li><strong>type</strong> <span class="trac-field-old">Support Requests</span> → <span class="trac-field-new">Bugs</span> </li> </ul> <p> Please, next time add report in English and well formatted </p> <pre class="wiki">1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; Coun tersMg?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; HttpServerSession?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; INiceNetServer.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; ImpNetLog?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; InPublicPreDefine?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NetCountersInstanceMg?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NetLogMg?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NiceHttpReq?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NiceIDMg.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NiceLog?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt;C:\vs15\VC\include\thr/xtimec.h(24): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xtimec.h(26): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xtimec.h(27): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\chrono(1014): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthreads.h(33): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthreads.h(56): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthreads.h(82): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthread(78): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\thr/xthread(99): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(308): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt; C:\vs15\VC\include\mutex(440): note: 参见对正在编译的类 模板 实例化“std::unique_lock&lt;_Mutex&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(54): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;9&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(53): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;8&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(52): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;7&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(51): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;6&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(50): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;5&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(49): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;4&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(48): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;3&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(47): note: 参见对正在编译的类 模板 实例化“boost::arg&lt;2&gt;”的引用 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(46): note: 参见对正在编译的类 模板 实例化“boost::arg&lt; 1&gt;”的引用 1&gt;C:\vs15\VC\include\mutex(378): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(624): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(637): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(646): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(565): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(626): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(629): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(663): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(668): error C2248: “std::_Mutex_base::_Mymtx”: 无法访问 private 成员(在“std::_Mutex_base”类中声明) 1&gt; C:\vs15\VC\include\mutex(71): note: 参见“std::_Mutex_base::_Mymtx”的声明 1&gt; C:\vs15\VC\include\mutex(26): note: 参见“std::_Mutex_base”的声明 1&gt;C:\vs15\VC\include\mutex(748): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt;C:\vs15\VC\include\mutex(877): error C2872: “xtime”: 不明确的符号 1&gt; C:\vs15\VC\include\thr/xtimec.h(19): note: 可能是“xtime” 1&gt; D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35): note: 或 “boost::xtime” 1&gt; NiceNet?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NiceNetCounter?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; NormalThreadMg?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; Scheduler.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; 正在生成代码... 1&gt; 正在编译... 1&gt; Scheduler_impl.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPClient.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPClientSession.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPServer.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; TCPServerSession.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; WebSocketSession?.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; XZhtTCPBase.cpp 1&gt; Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt; - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt; - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt; Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt; 正在生成代码... ========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ========== </pre> Ticket viboes Sat, 15 Sep 2018 08:20:19 GMT milestone changed https://svn.boost.org/trac10/ticket/11477#comment:11 https://svn.boost.org/trac10/ticket/11477#comment:11 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.69</span> </li> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/8c1d232b8cb192716623e5de6a55ee607432b252"><span class="icon">​</span>https://github.com/boostorg/thread/commit/8c1d232b8cb192716623e5de6a55ee607432b252</a> <a class="ext-link" href="https://github.com/boostorg/thread/commit/bf7e79c709da344806abb6bcbc0d07532f842a27"><span class="icon">​</span>https://github.com/boostorg/thread/commit/bf7e79c709da344806abb6bcbc0d07532f842a27</a> <a class="ext-link" href="https://github.com/boostorg/thread/commit/f4b239bab1ddde61c8707b51db72c2435c29c879"><span class="icon">​</span>https://github.com/boostorg/thread/commit/f4b239bab1ddde61c8707b51db72c2435c29c879</a> </p> Ticket viboes Mon, 21 Jan 2019 19:55:44 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11477#comment:12 https://svn.boost.org/trac10/ticket/11477#comment:12 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket