当我尝试在tinyecc-2.0 IN TINYOS-2.1.2中使用SHA1功能时,我收到以下错误:
在我给出的配置文件中,
implementation {
components DisseminationC as App;
App.SHA1 -> SHA1M;
}
这里SHA1.nc是接口文件,SHA1M.nc是模块文件。
当我make micaz sim
时,我收到错误:
In component `DisseminationAppC':
DisseminationAppC.nc:19: expected component `SHA1', but got a component
DisseminationAppC.nc:31: cannot find `SHA1M'
如何解决这个问题?
答案 0 :(得分:0)
您似乎没有实例化名为SHA1M的组件。试试这个:
implementation {
components DisseminationC as App;
components SHA1M;
App.SHA1 -> SHA1M;
}