Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11477: Boost's thread and std's thread conflict
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-09-28 03:44:27
#11477: Boost's thread and std's thread conflict
-------------------------------+---------------------
Reporter: GradyDeng | Owner: viboes
Type: Support Requests | Status: closed
Milestone: To Be Determined | Component: thread
Version: Boost 1.57.0 | Severity: Problem
Resolution: worksforme | Keywords: thread
-------------------------------+---------------------
Comment (by anonymous):
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> CountersMg.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> HttpServerSession.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> INiceNetServer.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> ImpNetLog.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> InPublicPreDefine.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NetCountersInstanceMg.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NetLogMg.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NiceHttpReq.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NiceIDMg.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NiceLog.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1>C:\vs15\VC\include\thr/xtimec.h(24): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xtimec.h(26): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xtimec.h(27): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\chrono(1014): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xthreads.h(33): error C2872: âxtimeâ: ä¸æç¡®ç符
å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xthreads.h(56): error C2872: âxtimeâ: ä¸æç¡®ç符
å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xthreads.h(82): error C2872: âxtimeâ: ä¸æç¡®ç符
å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xthread(78): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\thr/xthread(99): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\mutex(308): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1> C:\vs15\VC\include\mutex(440): note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾å
âstd::unique_lock<_Mutex>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(54):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<9>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(53):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<8>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(52):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<7>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(51):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<6>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(50):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<5>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(49):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<4>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(48):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<3>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(47):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<2>âçå¼ç¨
1>
D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/bind/placeholders.hpp(46):
note: åè§å¯¹æ£å¨ç¼è¯çç±» æ¨¡æ¿ å®ä¾åâboost::arg<1>âçå¼ç¨
1>C:\vs15\VC\include\mutex(378): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\mutex(624): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\mutex(637): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\mutex(646): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\mutex(565): error C2248: âstd::_Mutex_base::_Mymtxâ:
æ æ³è®¿é® private æå(å¨âstd::_Mutex_baseâç±»ä¸å£°æ)
1> C:\vs15\VC\include\mutex(71): note: åè§âstd::_Mutex_base::_Mymtxâç声
æ
1> C:\vs15\VC\include\mutex(26): note: åè§âstd::_Mutex_baseâç声æ
1>C:\vs15\VC\include\mutex(626): error C2248: âstd::_Mutex_base::_Mymtxâ:
æ æ³è®¿é® private æå(å¨âstd::_Mutex_baseâç±»ä¸å£°æ)
1> C:\vs15\VC\include\mutex(71): note: åè§âstd::_Mutex_base::_Mymtxâç声
æ
1> C:\vs15\VC\include\mutex(26): note: åè§âstd::_Mutex_baseâç声æ
1>C:\vs15\VC\include\mutex(629): error C2248: âstd::_Mutex_base::_Mymtxâ:
æ æ³è®¿é® private æå(å¨âstd::_Mutex_baseâç±»ä¸å£°æ)
1> C:\vs15\VC\include\mutex(71): note: åè§âstd::_Mutex_base::_Mymtxâç声
æ
1> C:\vs15\VC\include\mutex(26): note: åè§âstd::_Mutex_baseâç声æ
1>C:\vs15\VC\include\mutex(663): error C2248: âstd::_Mutex_base::_Mymtxâ:
æ æ³è®¿é® private æå(å¨âstd::_Mutex_baseâç±»ä¸å£°æ)
1> C:\vs15\VC\include\mutex(71): note: åè§âstd::_Mutex_base::_Mymtxâç声
æ
1> C:\vs15\VC\include\mutex(26): note: åè§âstd::_Mutex_baseâç声æ
1>C:\vs15\VC\include\mutex(668): error C2248: âstd::_Mutex_base::_Mymtxâ:
æ æ³è®¿é® private æå(å¨âstd::_Mutex_baseâç±»ä¸å£°æ)
1> C:\vs15\VC\include\mutex(71): note: åè§âstd::_Mutex_base::_Mymtxâç声
æ
1> C:\vs15\VC\include\mutex(26): note: åè§âstd::_Mutex_baseâç声æ
1>C:\vs15\VC\include\mutex(748): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1>C:\vs15\VC\include\mutex(877): error C2872: âxtimeâ: ä¸æç¡®ç符å·
1> C:\vs15\VC\include\thr/xtimec.h(19): note: å¯è½æ¯âxtimeâ
1> D:\QzhXGame2015\XDepend\stl_boost_wstl\boost/thread/xtime.hpp(35):
note: æ âboost::xtimeâ
1> NiceNet.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NiceNetCounter.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> NormalThreadMg.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> Scheduler.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> æ£å¨çæ代ç ...
1> æ£å¨ç¼è¯...
1> Scheduler_impl.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> TCPClient.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> TCPClientSession.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> TCPServer.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> TCPServerSession.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> WebSocketSession.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> XZhtTCPBase.cpp
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For
example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
1> æ£å¨çæ代ç ...
========== çæ: æå 0 个ï¼å¤±è´¥ 1 个ï¼ææ° 0 个ï¼è·³è¿ 0 个 ==========
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/11477#comment:6> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-09-28 03:50:40 UTC