簡體   English   中英

無法在Visual Studio 2012中使用boost :: threads

[英]Cannot use boost::threads in Visual Studio 2012

我在Visual Studio 2012(CTP 2012年11月)中使用boost :: threads遇到以下錯誤。 我正在使用Boost 1.53。

1>boost/config/requires_threads.hpp(29): fatal error C1189: #error :  "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"

我在互聯網上找到了使用多線程c運行時的建議。 (我是,這行不通。)然后,對於該問題的處理方法,大家都保持沉默。 增強支持Visual Studio嗎?

如果禁用語言擴展(即,開關/ Za),則在Visual Studio中將自動禁用線程。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM