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 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;
If you are using vim editor, you can easily find missing semicolon by typing:
/[^;]\s*$
...and then jump up/down (with N/n), until problematic line is found.
I had similar issue, while error was missing the storage class name in static assignment. E.g.:
.h:
class MyClass {
static const int something;
}
.cpp:
const int something = 1; // returns error
const int MyClass::something = 1; // OK
As Mawg pointed out in a comment, declaring a class member function as extern can cause similar issues.