Answer

问题及解答

[DevPlan] 关于 Calculator 与 CalculatorApp 的编译

Posted by haifeng on 2023-03-15 12:38:45 last update 2023-03-15 12:38:45 | Edit | Answers (0)

Calculator 工程中的文件均使用 ANSI 编码, 而 CalculatorApp 工程是在 Upp 下组织的, 故均使用 utf-8 BOM 编码.

当 Calculator 工程中某文件使用了 UTF8编码, 在编译时很可能出现很多奇怪的错误. 比如:

C3927 “->“: 非函数声明符后不允许尾随返回类型等错误

 

而 CalculatorApp 工程中某文件即使使用了 UTF8编码, 也可能导致很多奇怪的错误.