Error in math.h file while Autosar code generation
Mostrar comentarios más antiguos
Hello,
I am not understanding why I am getting the following MISRA error while compiing my .c file:
..\ansi\math.h 142 Error 10: Expecting ';'
..\ansi\math.h 142 Error 10: Expecting '{'
..\ansi\math.h 465 Error 129: declaration expected, identifier '__Ldouble_int_u' ignored
..\ansi\math.h 465 Error 19: Useless Declaration
..\ansi\math.h 489 Error 10: Expecting ';'
..\ansi\math.h 489 Error 10: Expecting '{'
..\ansi\math.h 773 Error 10: Expecting ';'
..\ansi\math.h 773 Error 10: Expecting '{'
Please help.
2 comentarios
Karthik C
el 12 de Abr. de 2020
which compiler you're using?
Namrata Biranje
el 16 de Abr. de 2020
Respuestas (1)
Shivam Lahoti
el 12 de Nov. de 2024
0 votos
Hi Namrata,
I understand that you are encountering MISRA errors related to syntax issues while compiling your .c file, specifically pointing to the "math.h" header file.
These errors may indicate syntax issues, such as missing semicolons or braces, or a corrupted "math.h" file. Ensure that the header file is unaltered, and check your code for any preprocessor directives or conditional compilation issues that might be affecting the file's inclusion.
I hope this will help you resolve the issue.
Regards,
Shivam
Categorías
Más información sobre AUTOSAR Blockset en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!