#error< thread>使用/ clr或/ clr:pure进行编译时不支持。 [英] #error <thread> is not supported when compiling with /clr or /clr:pure.

查看:1691
本文介绍了#error< thread>使用/ clr或/ clr:pure进行编译时不支持。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我在visual studio中创建了visual C ++类库文件。  

 我添加了一些.h和.cpp文件。当我尝试构建应用程序时,我得到了b


 < b>" #error< thread>使用/ clr或/clr:pure."</b>编译时不支持;
$


错误无法构建应用程序。请建议我如何解决这个问题。我已经完成谷歌但没有找到正确的解决方案。

解决方案

你好,


感谢您在此处发布。


>>< b>" #error< thread>使用/ clr或/clr:pure."</b>

进行编译时不支持

您的项目类型是什么?


< CLR编译器不支持p> std :: thread。


如果您的项目是非托管项目,请从项目属性中移除/ clr支持 - > Genreal->公共语言运行时支持属性。


如果您的项目是托管项目,请尝试使用 $ .Net Framework中的b $ b线程类。


希望这可以帮到你。


最好的问候,


Sera Yu


 I have created visual C++ class library file in visual studio.  
 i have added some .h and .cpp file. When i try to build application i am getting

 <b>"#error <thread> is not supported when compiling with /clr or /clr:pure."</b>

error not able to build the application. Please suggest me how can i solve this issue.I have done google but didn't find right solution for this issue.

Hi,

thanks for posting here.

>><b>"#error <thread> is not supported when compiling with /clr or /clr:pure."</b>

What's your project type?

std::thread is not supported by CLR compiler.

If your project is unmanaged project, please remove /clr support from your project property->Genreal->Common Language Runtime support property.

If your project is managed project, please try to use thread class in .Net Framework.

Hope this could be help of you.

Best Regards,
Sera Yu


这篇关于#error&lt; thread&gt;使用/ clr或/ clr:pure进行编译时不支持。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆