当前位置:网站首页>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 .
边栏推荐
- Introduction to core functions of webrtc -- an article on understanding SDP PlanB unifiedplan (migrating from PlanB to unifiedplan)
- HTB-Lame
- 彻底解决Lost connection to MySQL server at ‘reading initial communication packet
- Promise中finally的用法
- [applet project development -- JD mall] uni app commodity classification page (Part 2)
- C#实现基于广度优先BFS求解无权图最短路径----完整程序展示
- JS日常开发小技巧(持续更新)
- 调试定位导航遇到的问题总结
- Redis tutorial
- MySQL knowledge points
猜你喜欢
随机推荐
MySQL knowledge points
[applet project development -- Jingdong Mall] classified navigation area of uni app
Subnet division and subnet summary
性能测试常见面试题
Servlet [first introduction]
[QT] add knowledge supplement of third-party database
Classic programming problem: finding the number of daffodils
The best learning method in the world: Feynman learning method
C#实现基于广度优先BFS求解无权图最短路径----完整程序展示
XXL job User Guide
Introduction to ieda right click source file menu
IEDA 右键源码文件菜单简介
Edge Drawing: A combined real-time edge and segment detector 翻译
力扣-两数之和
C # realize solving the shortest path of unauthorized graph based on breadth first BFS -- complete program display
Ctfshow blasting WP
Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
Summary of problems encountered in debugging positioning and navigation
数组的includes( )
js 找出两个数组中的重复元素







![Servlet [first introduction]](/img/2a/aff3b93e43550d30a33c1683210d3a.png)

