Compiler Polyspace bug finder error

2 visualizaciones (últimos 30 días)
praveenkhanna cr
praveenkhanna cr el 13 de Jul. de 2019
Respondida: Christian Bard el 9 de Mzo. de 2021
Containing many errors while performing polyspace like
1. In the compiler header file
  • expected a type specifier
  • "__attribute__" has already been defined-Even the specified variable is defined.
2.In source files(.c files)
  • Files are already defined but it is showing that it is undefined.(For Example-" variable name " is undefined)
  1 comentario
Peter Bauer
Peter Bauer el 17 de Sept. de 2020
I came across the same issue. We are using an in-house embedded Compiler supporting some "__attribute__" declarations. What is the recommended way to deal with this?
A workaround could be to define all the "__attribute__" variants as empty strings with the "-D" option ...?

Iniciar sesión para comentar.

Respuestas (1)

Christian Bard
Christian Bard el 9 de Mzo. de 2021
That is recommended to use polyspace-configure on the build chain to get the set of options and target values to match your compiler. See doc below:

Community Treasure Hunt

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

Start Hunting!

Translated by