identifier "SRSS" is undefined while doing polyspace analysis
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
while doing the polyspace analysis , I got an error "SRSS" identifier is undefined.
I have added all the header files required in the subfolder paths also. "SRSS" is a "#define" which comes from another header file where I have added all the "#define" in a new polyspace.h header file. This polyspace.h has been included in the environment settings("include").
How to fix this error? I can't change any source files as I am not the owner of the source files.
I am using "greenhills" compiler and target processor as "ARM64".
Regards,
0 commentaires
Réponses (1)
Anirban
le 16 Mar 2023
Your workflow should have worked. For instance, this simple file:
void foo(void) {
int x = SS;
}
Will show the 'undefined identifier' error.
If you analyze this file with the option:
-include1=path\to\polyspace.h
Or
-include 'path\to\polyspace.h'
With the content of polyspace.h as follows:
#define SS 1
The error goes away.
You can contact Technical Support for more help with the problem.
Voir également
Catégories
En savoir plus sur Troubleshooting in Polyspace Products for Ada dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!