This bug appears when editing code with Hal Library of STM32. Right click to locate the relevant header file, but the system still reports an error. In fact, the main problem is the header file.
1. It is necessary to check whether the part used by the main program in the header file has been enabled, especially “stm32f1xx”_ hal_ “Con. H” and “stm32f1xx”_ hal.h”。
2. The compiler error is not accurate, such as the header file stm32f1xx_ Hal in RCC. H_ Statustypedef is not defined. You need to check carefully. The error is reported when compiling the. C file. Basically, they are all written by themselves. This kind of error will be reported only when there is an error in the compilation of the. C file. We need to pay attention to the unified include “ stm32f7xx_ hal.h>”, Instead of a separate include “stm32f7xx”_ hal_ gpio.h>” stm32f1xx_ hal_ (such as XXX. H header file)
Read More:
- Keil :error: identifier “int8_ T “is undefined
- Keil : error: identifier “int8_ T “is undefined
- Xcode Error: Embedded binary’s bundle identifier is not prefixed with the parent app’s bundle identifier
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- Error c3861: identifier not found | identifier not found
- Error c2065: ‘new’: undeclared identifier, mainly because it is a. C file
- Microsoft JScript runtime error: ‘sys’ is undefined
- Error C2065 ‘cout’: undeclared identifier
- QuartusII software exception: error: top level design entity “” is undefined
- R note for Bioinfo: the column for the select call is undefined
- AngularJS–[ng:areq] Argument ‘xxCtrl’ is not a function, got undefined! Error (Fixed)
- error C2065: ‘cout’ : undeclared identifier
- Solution: error: libtool library used but ‘libtool’ is undefined
- Successfully resolved error c3861: ‘printf’: identifier not found
- error C2065: ‘_beginthread‘ : undeclared identifier
- #error identifier-list parameters may only be used in a function definition
- IOS reverse error: use of undeclared identifier ‘mshookivar’
- “Undeclared identifier” still reported in declaration header file
- Undeclared identifier CV in opencv4.2.0_ WINDOW_ AUTOSIZE