When using gcc, we often encounter errors such as expected specifier qualifier list before sth. Specifiers refer to words such as void, char and struct foo; Qualifiers are keywords like const and volatile. If a word is used before it is defined, this kind of error will appear. You can define it through typedef and use it later
here is an example and an optional solution
Error instance:
Solution 1:
Solution 2: