Visual Studio C++: error C2065: “msg1”: 未声明的标识符 error C2065: “msg1”: 未声明的标识符经检查是换行符不一致导致的奇葩问题。 开启检查行尾可以预防该问题。