Nar*_*dra 18 c++ wpf build-error
我有一个完美运行的C++项目.现在我将项目复制到另一个文件夹,并将项目添加到WPF应用程序解决方案中.
现在C++项目给了我很多构建错误.其中之一是"System' : a namespace with this name does not exist".
以下是产生此错误的行.
#include "stdafx.h"
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;
Run Code Online (Sandbox Code Playgroud)
以上行位于AssemblyInfo.cpp文件中.我没有任何C++经验,所以发现很难删除错误.任何帮助表示赞赏.以下是另一个可能有助于您解决问题的错误.
managed targeted code requires a '/clr' option
Run Code Online (Sandbox Code Playgroud)
提前致谢.
小智 45
将公共语言运行时支持设置为项目属性中的2个位置的"公共语言运行时支持(/ clr)" :
配置属性 - >常规
配置属性 - > C/C++ - >常规
| 归档时间: |
|
| 查看次数: |
50516 次 |
| 最近记录: |