Why do I get a global declaration error in PolySpace?

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
MathWorks Support Team 2009년 6월 27일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Troubleshooting in Polyspace Products for Ada에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by