Expected a ";", compilation error with code prover
显示 更早的评论
Hello, I'm getting the compilation error expected a ";" in the next lines of one of the header files of my project:
/* ROM CATEGORY 4 START */
VSTD_DEF_CONST(extern, vuint8, CONST) kVStdMainVersion;
VSTD_DEF_CONST(extern, vuint8, CONST) kVStdSubVersion;
VSTD_DEF_CONST(extern, vuint8, CONST) kVStdReleaseVersion;
/* ROM CATEGORY 4 END */
All lines ends with a semicolon, any idea of why is this error appearing and what is the mitigation strategy ?
采纳的回答
更多回答(1 个)
rough93
2019-9-25
Although iirc C++ accepts '/*' as comments, MATLAB only accepts '%', for example:
%this is a comment
/* this is not a comment */
类别
在 帮助中心 和 File Exchange 中查找有关 Bug Finder Analysis in Polyspace Platform User Interface 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!