One possibility is that you are using findNode() in EASAPM
before the block that defines it. The compiler will "help"
you be making a default declaration with all int types,
and this will cause the real define to conflict with the
"previous" one...It's all part of the fun of making 'C' of
a stronger type...without all the code and line numbers
it's a bit hard to say if this is the problem though...

MS

Inderjit Singh wrote:
Hi, I have a small problem compiling my module.

I have an interface (EASAP.nc):

interface EASAP
{
      ...
       command struct Node* findNode(uint8_t id);
      ...
}

And in my module ( EASAPM.nc)
{
   ...
   command struct Slot* EASAPImp.findSlot(uint8_t slot)
   {
    ...
   }
...
   command struct Node* EASAP.findNode(uint8_t id)
   {
     ...
   }
}

I am get comiling error:
EASAPM.nc:672: conflicting types for `EASAP.findNode'
EASAP.nc:59: previous declaration of `EASAP.findNode'
make: *** [exe0] Error 1


I can't find a duplicate of the findNode function anywhere. Can anyone see what I can't?

Thanks,
Inderjir


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

_______________________________________________
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