Well, that works for me...as long as I'm careful where I put the typedef.
In a header file or inside the implementation{} block works.

Try reducing the problem to the minimum amount of code, perhaps there
is something else interfering with the definition or declaration.
Maybe a name overlap? Try different names?

MS

julien falco wrote:
ok thanks,
that's better. but i still have to problem of initializing i have tried with:

 typedef struct Command
{
uint8_t flag; }Command;

Command Cmd;


Cmd = '0'; =0x00; ={0}; =0 ....and so on
Cmd.flag =''0' same as above and so on...
 but nothing work, i always get an error of type

ReaderControllerM.nc :52: warning: type defaults to `int' in declaration of `Cmd1'
ReaderControllerM.nc:52: conflicting types for `Cmd1'
ReaderControllerM.nc:50: previous declaration of `Cmd1'

Is there any rule that I am missing?? (declaring typedef outside module etc?)


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to