MATLAB: Does Polyspace fail to compile with an error “expected a declaration”

Polyspace Bug Finder

Why does Polyspace fail to compile with an error "expected a declaration"?
Verifying SOURCE.c (4/35)
PATH\HEADER.h, line 1: error: expected a declaration
[!/*****************************************************************************|
^|

Best Answer

This kind of comment (if it's a comment) is not standard. Check to see whether HEADER.h needs to be included or not. Otherwise, this indicates a syntax error in HEADER.h.