fatal error C1190: managed targeted code requires a '/clr' option VS2010

来源:互联网 发布:网络教育要交几年学费 编辑:程序博客网 时间:2024/06/10 20:30

在使用Visual Studio(2008/2010,我使用的是2010)编译C++工程时出现编译错误:fatal error C1190: managed targeted code requires a '/clr' option
可以通过以下步骤解决:右键单击Solution Explorer中的工程 --->
选择Properties --->
打开“Propery Pages”页,在左边栏选择Configuration Properties的General项 --->
在右边的 Common Language Runtime Support 选项中 选择“Common Language Runtime Support(/clr)”选项即可。

原创粉丝点击