How to use dynamic arrays with PolySpace Client for C/C++?
Show older comments
I see the following error message during PolySpace compilation phase when I use dynamic arrays in my code:
Verifying sample.c
"c:\tmp\mds2\sources\sample.c", line 4: error: expression must have a constant value
char b[a];
^
1 error detected in the compilation of "sample.c".
Accepted Answer
More Answers (0)
Categories
Find more on Polyspace Bug Finder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!