编译时,字符集问题
vs2012吧
全部回复
仅看楼主
level 11
崩溃2015 楼主
每次编译总是提示,该文件包含不能在当前代码页(936)表示的字符。。。。。。
怎么解决?
2013年11月11日 00点11分 1
level 8
把问题写明白点带你,加上图片
2013年11月20日 08点11分 2
我复制上来了,帮我看一下
2013年11月22日 01点11分
level 11
崩溃2015 楼主
#include<iostream>
using namespace std;
int main()
{
cout<<"HelloWorld"<<endl;
return 0;
}
说是字符集问题,但是设置了也没有作用,网上搜的也没看明白讲的什么。
生成启动时间为 2013/11/12 12:39:14。
1>项目“F:\VS2010\1\1\1.vcxproj”在节点 2 上(build 个目标)。
1>InitializeBuildStatus:
正在对“Debug\1.unsuccessfulbuild”执行 Touch 任务。
ClCompile:
D:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt 11.cpp
11.cpp
1>f:\vs2010\1\1\11.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
1>f:\vs2010\1\1\11.cpp(1): error C2018: 未知字符“0x17”
1>f:\vs2010\1\1\11.cpp(1): error C2018: 未知字符“0x3”
1>f:\vs2010\1\1\11.cpp(1): error C2017: 非法的转义序列
1>f:\vs2010\1\1\11.cpp(1): error C2146: 语法错误: 缺少“;”(在标识符“宬”的前面)
1>f:\vs2010\1\1\11.cpp(1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>f:\vs2010\1\1\11.cpp(1): error C2143: 语法错误 : 缺少“;”(在“?”的前面)
1>f:\vs2010\1\1\11.cpp(1): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>f:\vs2010\1\1\11.cpp(1): error C2059: 语法错误:“数字上的错误后缀”
1>f:\vs2010\1\1\11.cpp(1): error C2059: 语法错误:“)”
1>f:\vs2010\1\1\11.cpp(1): error C2059: 语法错误:“字符串”
1>已完成生成项目“F:\VS2010\1\1\1.vcxproj”(build 个目标)的操作 - 失败。
生成失败。
已用时间 00:00:07.32
2013年11月22日 01点11分 3
1