当前位置:网站首页>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 .
边栏推荐
- EtherCAT原理概述
- Communication protocol -- Classification and characteristics Introduction
- Latest interface automation interview questions
- Network address translation (NAT) technology
- Redis efficient like and cancel function
- Let's just say I can use thousands of expression packs
- HTB-Lame
- Classic programming problem: finding the number of daffodils
- About the application of MySQL
- Complete training and verification of a neural network based on pytorch
猜你喜欢

别再说不会解决 “跨域“ 问题啦

Kmeans

Design practice of current limiting components

HTB-Lame

雪崩问题以及sentinel的使用

EDLines: A real-time line segment detector with a false detection control翻译

E15 solution for cx5120 controlling Huichuan is620n servo error

Network address translation (NAT) technology

Elk elegant management server log

The value of the second servo encoder is linked to the NC virtual axis of Beifu PLC for display
随机推荐
Redis tutorial
The best learning method in the world: Feynman learning method
Common interview questions for performance test
E15 solution for cx5120 controlling Huichuan is620n servo error
MySQL index --01--- design principle of index
实战 ELK 优雅管理服务器日志
Classic programming problem: finding the number of daffodils
Add / delete / modify query summary insert/create/put/add/save/post, delete/drop/remove, update/modify/change, select/get/list/find
Design practice of current limiting components
Introduction and installation of Solr
多元线性回归
A few lines of transaction codes cost me 160000 yuan
XXL job User Guide
[applet project development -- Jingdong Mall] user defined search component of uni app (Part 1)
Huawei operator level router configuration example | BGP VPLS configuration example
性能测试常见面试题
第03章_用户与权限管理
【小程序项目开发-- 京东商城】uni-app之分类导航区域
【机器学习】向量化计算 -- 机器学习路上必经路
[applet project development -- JD mall] uni app commodity classification page (Part 2)