[Tinyos-help] How to declare a pointer to user defined structure
JD
chokshi.jaydeep at gmail.com
Thu Dec 11 12:25:26 PST 2008
Greetings Folks,
I've a stupid (I believe) question. I've following structure defined in
header file,
typedef nx_struct __msg
{
CommonHeader cmnHdr;
nx_union
{
InitMsg __iMsg;
AckMsg __aMsg;
} __msgType;
} ActiveMessage;
Now in the module implementation, I try to declare a pointer as follows,
ActiveMessage *pMsg = NULL;
Doing so, nesc gives me following error,
"Syntax errorr before * "
"pMsg undeclared"
Nothing clicks me if what exactly I'm doing wrong out here. I sure its
something really stupid, I guess.
Please let me know if you find me doing thing wrong.
Thanks,
JD
---------------------------
Love All, Serve All
----------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20081211/0cbc0d94/attachment.htm
More information about the Tinyos-help
mailing list