中文对照:(编译错误)类型1后紧接着类型2,这是非法的
分析:例如“int float i;”语句
error C2660: 'xxx' : function does not take n parameters
中文对照:(编译错误)函数xxx不能带n个参数
分析:调用函数时实参个数不对,例如“sin(x,y);”
error C2664: 'xxx' : cannot convert parameter n from 'type1' to 'type2'
中文对照:(编译错误)函数xxx不能将第n个参数从类型1转换为类型2
分析:一般是函数调用时实参与形参类型不一致
error C2676: binary '<<' : 'class istream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator
error C2676: binary '>>' : 'class ostream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator
分析:“>>”、“<<”运算符使用错误,例如“cin<<x; cout>>y;”
error C4716: 'xxx' : must return a value
中文对照:(编译错误)函数xxx必须返回一个值
分析:仅当函数类型为void时,才能使用没有返回值的返回命令。
fatal error LNK1104: cannot open file "Debug/Cpp1.exe"
中文对照:(链接错误)无法打开文件Debug/Cpp1.exe
分析:重新编译链接
fatal error LNK1168: cannot open Debug/Cpp1.exe for writing
中文对照:(链接错误)不能打开Debug/Cpp1.exe文件,以改写内容。
分析:一般是Cpp1.exe还在运行,未关闭
fatal error LNK1169: one or more multiply defined symbols found
中文对照:(链接错误)出现一个或更多的多重定义符号。
分析:一般与error LNK2005一同出现
error LNK2001: unresolved external symbol _main
中文对照:(链接错误)未处理的外部标识main
分析:一般是main拼写错误,例如“void mian()”
error LNK2005: _main already defined in Cpp1.obj
中文对照:(链接错误)main函数已经在Cpp1.obj文件中定义
分析:未关闭上一程序的工作空间,导致出现多个main函数
warning C4003: not enough actual parameters for macro 'xxx'
中文对照:(编译警告)宏xxx没有足够的实参
分析:一般是带参宏展开时未传入参数
warning C4067: unexpected tokens following preprocessor directive - expected a newline










