Error: #268: The declaration may not appear after the executable statement block
. That is, the variable should be declared at the beginning of the main function and cannot appear after the executable statement. For example:
int main(){
Beep_Init();
float lenght;
while(1){
}
}
Should be changed to:
int main() {
float lenght;
Beep_Init();
while(1){
}
}
After the change, recompile it and it will be OK.