error: invalid storage class for function

Why can’t you stop buying 618?From the technical dimension to explore>>>

#error: invalid storage class for function

Today, we encountered a problem when compiling: the error prompt invalid storage class for function “xxxxx” later found that “{“} “did not match. Because we usually pay attention to the problem of “{” and “}”, every time we use it, we will use it in pairs. After careful examination, it is found that “ifdef” and “ENDIF” shield one of them. In the future, we should pay more attention to “ifdef”, “ENDIF” and so on, such as “if”, “else”, “ENDIF”, “ifndef” and other sentences. PS: compiler errors are syntax errors, usually develop good code habits is very important

Similar Posts: