Forum Discussion
Altera_Forum
Honored Contributor
17 years agoC-Typedef struct with µClinux
Hi all, I'm trying to use in my header file the simple following code : typedef enum { COUNTER1 = 0, COUNTER2 = 1, } ERRORCOUNTER; and in my .c main file something ...
Altera_Forum
Honored Contributor
17 years ago<div class='quotetop'>QUOTE (papyenfurie @ Jul 16 2009, 01:55 PM) <{post_snapback}> (index.php?act=findpost&pid=23153)</div>
--- Quote Start --- So here is my question : can we use typedef enum and typedef struct in µClinux ??[/b] --- Quote End --- For that matter, the question should be whether our compiler (nios2-linux-uclibc-gcc) supports that kind of strucutre. I'm pretty sure it does, I use it all the time. Could you please post the smallest, simplest source code that reproduces the same error you are seeing? It would make things easier for people wanting to help. Cheers, Ricardo.