error : storage class specified for parameter

前端 未结 7 1696
悲&欢浪女
悲&欢浪女 2021-02-01 11:34

I have a C code written. When I compile it on Linux then in the header file it says the following error: storage class specified for parameter i32 , i8 and so

相关标签:
7条回答
  • 2021-02-01 12:34

    I incurred this same error once. The solution was to browse around files and look for pending statements (like a non-closed parenthesis, or a missing semicolon.) Usually it's really a trivial error, but the compiler complains.

    The bad news is that it doesn't always complain at the right line (or even in the right file!) The good news is that in these cases it says something useful like:

    WRONGFILE.h: In function ‘FUNCTION_OF_ANOTHER_FILE_WRT_WRONG_FILE’"
    WRONGFILE:line:col: error: storage class specified for parameter ‘param’ before. 
    

    Go and check in that other reported file.

    0 讨论(0)
提交回复
热议问题