Altera_Forum
Honored Contributor
19 years agostruct
struct test { int number; char name[20]; }; test t; in the nios ide the compiler says: test undeclared, why?
Hi asegers,
I think you are right in declaration point of.. Just try out this one too:::: typedef struct test { int number; char name[20]; }t; And plz check one thing..the header file( In which you define this structure declaration) is must be include in your source file(*.c). so your source file get the declaration of this structure and your compiler will compile the code without error.. Best Regards, slsnios