main.c(66): error C136: 'Timer0Server': 'void' on variable
时间: 2024-05-25 22:15:44 浏览: 100
This error message indicates that there is an issue with the variable "Timer0Server" in line 66 of the main.c file. Specifically, the error is stating that the variable has been declared as a void type, which is not valid.
To fix the error, check the declaration of the Timer0Server variable and ensure that it is declared with the correct data type. It should be declared as a pointer to a function with the appropriate parameters and return type.
For example, if Timer0Server is intended to be a function that takes no arguments and returns void, the declaration should look something like this:
void (*Timer0Server)(void);
Alternatively, if Timer0Server is intended to be a function that takes an integer argument and returns a float, the declaration should look something like this:
float (*Timer0Server)(int);
阅读全文