Thanks. Like you said, it was a problem with the reserved name "command".
What a shame... :)

Regards,
Daniel.

On Wed, Feb 15, 2012 at 5:46 PM, Erwan Livolant
<[email protected]>wrote:

> **
> Hi Daniel
>
> You have a syntax error because "command" is a reserved name for the nesc
> compiler !
> Try with :
> command_t cmd;
>
> Regards,
> Erwan
>
> Le 15/02/2012 15:24, Alfonso Facebrick a écrit :
>
> Hi everyone,
>
> I am editing the TestAssociate test, provided with TKN154, in order to add
> sending/receiving frames features. I have declared in app_profile.h:
>
> typedef nx_struct command {
>    nx_uint16_t nodeid;
>    nx_uihnt16_t value;
> } command_t;
>
> And then in TestCoordC.nc, the variable:
>
> command_t* command;
>
> It seems simple, but I don't know why I get a compile error that just says:
>
> syntax error before `command'
> make: *** [exe0] Error 1
>
> Has it ever happened to someone? Any thought about why can it be?
>
> Thanks,
> Daniel.
>
>
>
> _______________________________________________
> Tinyos-help mailing 
> [email protected]https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to