start of current external declaration
时间: 2024-09-24 21:13:09 浏览: 98
TI-EU Declaration of Conformity (DoC)-综合文档
The issue you're encountering with the syntax error "token “;“ inserted before “DummyAddr“" is related to a missing semicolon (;) in C/C++ programming. The error suggests that there should be a semicolon after the "extern" keyword for the declarations of `DummyAddr` and `Dem_Cfg_MemoryEntryInit`.
Here's how to address this problem:
```c
// Start of current external declaration (fixing the issue)
extern uint8 DummyAddr[28]; // Add a semicolon here
extern uint8 Dem_Cfg_MemoryEntryInit[28]; // And another one here
```
In your code snippet, these declarations need to end with a semicolon to indicate the end of the statement.
As for the second part about code completion, you mentioned using Visual Studio Code (VSCode) or a similar editor. In such an editor, when you press `Ctrl + Space` twice consecutively, you can trigger advanced code completion. This feature will suggest the names of classes even if they haven't been imported into the current file. If the class isn't imported, VSCode will generate an appropriate import statement automatically for you.
阅读全文