error C2871: “System”: 具有该名称的命名空间不存在 的解决办法
编译STL/clr时
头文件中:
using namespace System;
//编译中出现
\Person.h(5) : error C2871: “System”: 具有该名称的命名空间不存在
\Person.h(8) : error C2143: 语法错误 : 缺少“;”
........................
主要原因是 程序是托管代码,在项目设置中 选择
原创
2011-11-29 15:20:46 ·
7781 阅读 ·
1 评论