pointer to incomplete class type error in polyspace.
Afficher commentaires plus anciens
Hello,
I get polyspace compilation error as "pointer to incomplete class type is not allowed" in polyspace2010b version and gnu compiler.
below is the sample of code: struct student_s { unsigned int applicationId; };
typedef struct student_s student_t;
typedef student_t *studentid_t;
struct studentinfo_s { studentid_t id; };
typedef struct studentinfo_s studentinfo_t; studentinfo_t * const student_Info;
student_Info->id->applicationId = 10;
Polyspace throws error when I try to assign 10 to student_Info->id->applicationId. How can i fix this error.
Regards, PN.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Target and Compiler dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!