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 on
typedef int i32;
typedef char i8;
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.
extern
in the class definition (slides off sheepishly, cheeks aflame) – Mawg says reinstate Monica