摘要:
1.#error Directive (C/C++)The #error directive emits a user-specified error message at compile time and then terminates the compilation.#error toke... 阅读全文
posted @ 2014-06-06 18:44
Andy Cheung
阅读(518)
评论(0)
推荐(0)
摘要:
-00 无优化。-01 减少代码尺寸和执行时间,不进行需要大量编译时间的优化。-02 几乎执行所有优化,而不考虑代码尺寸和执行时间。-03 执行 -02 所有的优化,以及内联函数,重命名寄存器的优化。-0S 针对尺寸的优化。执行所有 -02 优化而不增加代码尺寸。设置方法:1.不使用外部的makef... 阅读全文
posted @ 2014-06-06 11:18
Andy Cheung
阅读(434)
评论(0)
推荐(0)
摘要:
1.expected identifier before numeric constant一般情况下是枚举类型中的某个变量已经被#define定义过一次了,在项目空间中搜索你枚举类型中的所有变量类型,看看是否被#define过,如果被#define过,就把#define的删除或换个名字。 阅读全文
posted @ 2014-06-06 10:21
Andy Cheung
阅读(576)
评论(0)
推荐(0)

浙公网安备 33010602011771号