Failed compilation in Polyspace using R2022b
16 次查看(过去 30 天)
显示 更早的评论
Hello All,
Great Day.
I am working on static code analysis using Polyspace R2022b to check the MISRA C:2012 coding standards.
While running the "Run Code Prover" for BugFinder report, it is showing some warnings and error messages like below:
- Some errors related to identifier XYZ is undefined
- some source files are not compilng (ie. Failed compilation)
- some showing could not find inlcude file "abc/xyz.h"
After generation of "Polyspace Code Verification Developer Report" for the project, I can see the source files which are having comilation errors.
No clue to solve this issue. It would be helpful if i get info to solve the issue and get the report succesfully.
Configurationn setting info:
Source ocde language: C
Compiler: greenhils
Target: arm
You can also find the screenshor regarding the compilation error and "files with compilation errors" in Generated report
Thank you in advance..
1 个评论
Praveen Nerji
2024-9-2
Hi,
I am also getting similar error:
Configurationn setting info:
Source ocde language: C
Compiler: greenhils
Target: arm
Please support
回答(1 个)
Anirban
2023-5-23
Errors such as this indicate that perhaps the project is not set up correctly. In particular, all the include folders have not been specified.
You can find some troubleshooting for the Undefined Identifier error in the documentation. In general, manually setting up the project can take some time. If you have working build command, you can use polyspace-configure to create a project from your build command and add all the right include folders automatically.
For more help with project setup, you can contact Technical Support. For more information on what Technical Support might need from you for diagnosing the problem, see Contact Technical Support.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!