Using keil software to report syntax error near ‘; ”
This is the first time through CSDN upload their own learning situation, novice report.
Today, when using keil to write C, I used a piece of such code
?Define uint unsigned int; code> void delay (uint MS) code> { code> uint a; code> while (MS --)// software delay module code> for (a = 0; a & lt; 114; a + +); code> } code> OL>
When compiling, a syntax error near ';' was given, and the following MS and a both reported an error that no identifier was defined.
From the code above, it can be seen that there is an obvious error with the ";" sign after define, but I found that the line with syntax error near ';' error is void delay (uint MS).
I was hoodwinked at that time, looking for a long time, I found that there was an extra "; to commemorate this stupid operation.
Read More:
- How to uninstall the software for apple / Mac? What if the software can’t be unloaded?
- Command line option syntax error appears during software installation?
- Eclipse report error Error:opening registry key ‘Software/JavaSoft/JRE’
- How to generate lib library with keil MDK and use lib Library
- Use the Zsh plug-in ‘Zsh syntax highlighting’ to highlight your available Zsh commands
- Use mujoco = = 0.5.7 to run the code and report error: invalid activation key
- Use less.js to verify and report an error in the Vue file of vscode
- Use mini-css-extract-plugin to report ReferenceError: window is not defined
- [wechat Payment] use OpenSSL command to generate apicclient_ key.pem Error report URL error 58
- Use sc command under CMD, report openservice failed 1060 error
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- Keil :error: identifier “int8_ T “is undefined
- Keil : error: identifier “int8_ T “is undefined
- How to delete the residual software files on the computer?
- [Python] error syntax error: summary of solutions to invalid syntax
- MDK (keil) debugging often appears flashback phenomenon solution.
- How to handle error 2755 when installing software under windows
- Keil prompts the stlink download program to prompt error: Flash download failed – target DLL has been cancelled
- Solution to the problem that keil can’t set breakpoint
- How to delete software completely on MAC