当前位置:网站首页>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 .
边栏推荐
- A shooting training method based on the digital measurement of Joule energy and posture of sphygmomanometer air bag with standard air pressure
- Mybati SQL statement printing
- 限流组件设计实战
- Complete training and verification of a neural network based on pytorch
- C#实现基于广度优先BFS求解无权图最短路径----完整程序展示
- How to verify whether the contents of two files are the same
- HTB-Lame
- VMware vSphere 6.7 virtualization cloud management 12. Vcsa6.7 update vCenter server license
- JUC learning
- Stop saying that you can't solve the "cross domain" problem
猜你喜欢

Huawei operator level router configuration example | configuration optionA mode cross domain LDP VPLS example

Hal library setting STM32 interrupt
![[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
![[machine learning] vectorized computing -- a must on the way of machine learning](/img/3f/d672bb254f845ea705b3a0ca10ee19.png)
[machine learning] vectorized computing -- a must on the way of machine learning

Cloud native annual technology inventory is released! Ride the wind and waves at the right time

Redis tutorial

通信协议——分类及其特征介绍

Overview of EtherCAT principle

VMware vSphere 6.7虚拟化云管理之12、VCSA6.7更新vCenter Server许可

XXL job User Guide
随机推荐
第03章_用戶與權限管理
mybati sql 语句打印
安装VCenter6.7【VCSA6.7(vCenter Server Appliance 6.7) 】
Dart training and sphygmomanometer inflation pump power control DPC
PTA 1016
VMware vSphere 6.7虚拟化云管理之12、VCSA6.7更新vCenter Server许可
【机器学习】向量化计算 -- 机器学习路上必经路
岭回归和lasso回归
Depth first traversal of C implementation Diagram -- non recursive code
Druid monitoring statistics source
通信协议——分类及其特征介绍
一文讲解发布者订阅者模式与观察者模式
Huawei operator level router configuration example | BGP VPLS configuration example
Redis efficient like and cancel function
C # realize solving the shortest path of unauthorized graph based on breadth first BFS -- complete program display
gcc使用、Makefile总结
【小程序项目开发-- 京东商城】uni-app之分类导航区域
EtherCAT简介
Let's just say I can use thousands of expression packs
几行事务代码,让我赔了16万