Using CB 13.12, mingw32-gcc version 4.7.1 on win8.1 & winXP. Simple C program that use to compile clean with CB how compiles with 1 "error: expected specifier-qualifier-list before 'static' ". The line it references is "static short sp2func". If I remove the static qualifier then msg changes to "error: expected...before 'main' ". I have never gotten this error before and I did find where other have but their solutions didn't work for my situation. I don't understand the msg, but it appears to have to do with order of structs. Checked the order of what few typedef structs are used and all declarations of the structs using typedefs come after the typedef definitions. Thanks!
PS - neither CB nor mingw were updated from when the programs compiled clean
BTW, the build log wasn't attached because it only contained one line, the above error msg. So my text contained everything. The real question was the meaning of the error msg, not a review of my code. Having it would not have revealed the cause of the problem.
Resolution - still not sure exactly what the error msg means other than what I derived from the context of other posts on the internet. Anyway, I resolved the problem in that the header file "included" immediately before the line of code referenced in the error, i.e. "static short sp2func", contained some extraneous text I hadn't noticed that was entered by the tool that generated the header file.