Hello,
Please if anyone have any idea why I am having problems during compilation of my code described below please HELP me! I am trying to crack this problem by analyzing my code and any other programs that I can put my hands on but till now I haven't been able to solve it. Thanks in advance for your help! TK On Sun, Jun 13, 2010 at 6:54 PM, Avelorn Bazyl <[email protected]>wrote: > Hi, > > I have a question concerning the parametrized interfaces and a problem that > I am trying to crack fro last week so if any one can help me I would be very > grateful!!! > I have an application that when compiled for the TOSSIM it works > just perfect but when I am trying to compilation for the node (TelosB), I > get compilation errors concerning the used parametrized interface. I have > already check it more then 100 times everything seems to be ok. > > App details: > > Module: > DiffTestNlistM { > ..... > > uses interface Filter as Filter1; > uses interface Filter as Filter2; > } > ..... > > 196: event error_t Filter1.receiveMatchingMsg(message_t* msg) > { > ... > } > > 223: event error_t Filter2.receiveMatchingMsg(message_t * msg) > { > .. > } > // End of module > } > > Module Config: > configuration DiffTestNlict{ > > implementation { > .... > DiffTestNlistM.Filter1 -> OnePhasePullM.Filter[uniqueCount("Filter1")]; > DiffTestNlistM.Filter2 -> OnePhasePullM.Filter[uniqueCount("Filter2")]; > .. > } > > Interface specification: Filter.nc > interface Filter > { > event error_t receiveMatchingMsg(message_t* msg); > command uint16_t getNextSeqNum(); > command error_t addFilter(Attribute* attrArray, uint8_t numAttrs); > command error_t removeFilter(); > command error_t sendMessage(message_t* msg, uint8_t priority); > command uint8_t getMyPriority(); > } > > module OnePhasePullM > { > .. > provides interface Filter[uint8_t myPriority]; > .. > > Implementation > { > 631: default event error_t Filter.receiveMatchingMsg[uint8_t > myPriority](message_t* msg) > { > return SUCCESS; > } > > 730 command error_t Filter.sendMessage[uint8_t myPriority](message_t* msg, > uint8_t priorityThresh) > { > ..... > } > ......... > } // End of module OnePhasePullM > > > configuration OnePhasePullM > { > provides interface Filter[uint8_t priority]; > > Implementation > { > Filter = OnePhasePullM.Filter; > ......... > } > > } // End of OnePhasePullM configuration > > > the compiler output > > In file included from DiffTestNlistM.nc:27, > from DiffTestNlist.nc:16: > In interface `Filter': > /home/xubuntos/workspace/DirectedDiffusion/src/interfaces/Filter.nc:6: > syntax error before `*' > /home/xubuntos/workspace/DirectedDiffusion/src/interfaces/Filter.nc:10: > syntax error before `*' > In file included from DiffTestNlist.nc:16: > In component `DiffTestNlistM': > DiffTestNlistM.nc:197: conflicting types for `Filter1.receiveMatchingMsg' > /home/xubuntos/workspace/DirectedDiffusion/src/interfaces/Filter.nc:6: > previous declaration of `Filter1.receiveMatchingMsg' > DiffTestNlistM.nc:224: conflicting types for `Filter2.receiveMatchingMsg' > /home/xubuntos/workspace/DirectedDiffusion/src/interfaces/Filter.nc:6: > previous declaration of `Filter2.receiveMatchingMsg' > In file included from DiffTestNlist.nc:17: > In component `OnePhasePullM': > /home/xubuntos/workspace/DirectedDiffusion/src/lib/OnePhasePullM.nc:632: > conflicting types for `Filter.receiveMatchingMsg' > /home/xubuntos/workspace/DirectedDiffusion/src/interfaces/Filter.nc:6: > previous declaration of `Filter.receiveMatchingMsg' > /home/xubuntos/workspace/DirectedDiffusion/src/lib/OnePhasePullM.nc:731: > conflicting types for `Filter.sendMessage' > /home/xubuntos/workspace/DirectedDiffusion/src/interfaces/Filter.nc:10: > previous declaration of `Filter.sendMessage' > /opt/tinyos-2.1.0/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning > "*** LOW POWER COMMUNICATIONS DISABLED ***" > make: *** [exe0] Error 1 > > Thank you in advance for your help! > > TK >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
