Why is Polyspace producing compilation errors when I have all the C and H files mentioned in the Source directory of Project in Polyspace 8.3 (R2012a)?

9 views (last 30 days)
In the Polyspace Project, the structure of my files included are :
myProject
-Source
-Includes
-All H files
-Source
-All C files
-Include
-Directory having all the H files
-Module
-Source
-Includes
- All H files
-Source
- All C files
-Configuration
- Configuration file
-Results
- Result directory
One of the H file, has all the definitions of variables /typedef/declarations and other H files refer to those.
While running Polyspace verification, the compilation step fails saying some of the typedefs are 'undefined' as:
a.h, line 66: error: identifier "float32_t" is undefined
Although 'float32_t.h' is defined in 't.h'.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Sep 2012
The H files should only be included as a directory in project structure, as below :
myProject
-Source
-sources
-All C files
-Include
-Directory having all the H files
-Module
-Source
-sources
- All C files
-Configuration
- Configuration file
-Results
- Result directory
This way H files inter-dependency is resolved.

More Answers (0)

Categories

Find more on Troubleshooting in Polyspace Products for Ada in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2012a

Community Treasure Hunt

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

Start Hunting!