Why do I get a global declaration error in PolySpace?
7 ビュー (過去 30 日間)
古いコメントを表示
When starting an analysis of my code I get the following error message in the log file:
Verifying cross-files ANSI C compliance
/home/sources/myfile.h:107: Error: global declaration of 'ABC' variable has incompatible type with its definition
declared 'non qualified' type incompatible with defined 'const' type
myfile.c:836: other localisation for previous error
採用された回答
MathWorks Support Team
2009 年 6 月 27 日
This error message is caused by having different definitions of the same function. Please double-check definitions of the variable 'ABC' in all your source files to ensure that they are defined in the same way.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および 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!