当前位置:网站首页>How to achieve 0 error (s) and 0 warning (s) in keil5
How to achieve 0 error (s) and 0 warning (s) in keil5
2022-07-01 03:19:00 【Air brother like the wind】
Use keil This software has been used for more than four years , From the initial keil4 To the present keil535, The compiler has been used since V5.06 To the present v6.16, The compilation speed has been improved a lot , before rebuild Once 3 More minutes , Now it's just a matter of 13s, It really reduces the time of fishing .
keil The installation and cracking of are basic operations , I recommend you to use keil5.3 Version above , So you can use the default v6.16 Compiler .

So how to make sure there are no mistakes and warnings , First, force yourself not to accept any mistakes and warnings , Otherwise you can't write good code ( At least in the eyes of the compiler ).
Facing mistakes , We must correct , Otherwise, the program cannot run , In this compiler C++ Function if not void type , Then there must be a return value , Otherwise, an error will be reported . contrast v5 compiler , It's just a warning . For other errors, follow C++ Just modify the grammar rules .
Face warning , Many people choose to ignore , But I can't stand it , To eliminate the warning . Most warnings can be eliminated , Face the warning that cannot be eliminated , Only a unique skill .

Two warnings are masked in the figure , Source file code and C Under the language, there is the transformation of conforming pointer and unsigned pointer .
If you open the project ,#include “xxx” There is a red fork in front , The problem is described as a multi byte object code page , There is no such thing Unicode Characters that can be mapped to , Description the project path contains Chinese , You need to change the Chinese of the path , Because this compiler does not support Chinese very well .
Many blogs mention turning off dynamic syntax checking , I really don't recommend this , Because there may be something wrong with the software .
Just upgraded to AC6.13 When , I found that there were no mistakes in many places , But there will be a red fork in front , My understanding is that this compiler does not automatically recognize C++ and C The header file , That is to say, they are all .h file , The default in accordance with the C language processing , In this way, the compilation can pass , But it looks awful , After tossing for a long time , Upgrade compiler selected , After upgrading the compiler separately , Cracking the compiler directly will cause keil An embarrassing situation that has not been solved ... Finally upgraded keil edition , Solved the problem .
When you see this , Feel good inside .( PC is 12 It's old in , Compiled with 33s)

In conclusion :1, upgrade keil edition , It is recommended to use ac6.16 compiler ;2, Correct all errors ;3, Modify warnings that can be modified , Shield those that cannot be modified .4, There are other questions , Check the data .
边栏推荐
- PTA 1016
- 【小程序项目开发--京东商城】uni-app之自定义搜索组件(上)
- 倍福TwinCAT3 Ads相关错误详细列表
- 安装VCenter6.7【VCSA6.7(vCenter Server Appliance 6.7) 】
- LeetCode_ Stack_ Difficulties_ 227. basic calculator (excluding multiplication and division)
- Overview of EtherCAT principle
- Redis 教程
- Magnetic manometer and measurement of foreign coins
- MySQL index --01--- design principle of index
- 【小程序项目开发 -- 京东商城】uni-app 商品分类页面(上)
猜你喜欢
![[applet project development -- Jingdong Mall] classified navigation area of uni app](/img/cb/b0b79444dc90980cd2220ff9e68549.png)
[applet project development -- Jingdong Mall] classified navigation area of uni app

Analyze datahub, a new generation metadata platform of 4.7K star

Feign远程调用和Getaway网关

xxl-job使用指南

岭回归和lasso回归
![Servlet [first introduction]](/img/2a/aff3b93e43550d30a33c1683210d3a.png)
Servlet [first introduction]

POI导出excel,按照父子节点进行分级显示

最好用的信任关系自动化脚本(shell)

XXL job User Guide

Network address translation (NAT) technology
随机推荐
Subnet division and subnet summary
Mybati SQL statement printing
VMware vSphere 6.7虚拟化云管理之12、VCSA6.7更新vCenter Server许可
限流组件设计实战
Poj-3486-computers[dynamic planning]
第03章_用户与权限管理
C#实现基于广度优先BFS求解无权图最短路径----完整程序展示
Nacos
About the application of MySQL
一文讲解发布者订阅者模式与观察者模式
Lavaweb [first understanding the solution of subsequent problems]
【日常训练】1175. 质数排列
多元线性回归
Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
ES6解构语法详解
【小程序项目开发 -- 京东商城】uni-app 商品分类页面(下)
Redis分布式锁的8大坑
LeetCode_栈_困难_227.基本计算器(不含乘除)
An article explaining the publisher subscriber model and the observer model
Huawei operator level router configuration example | configuration static VPLS example