IAR的一个编译错误Error[e27]: Entry "GenericApp_Init::?relay" in module Coordinator
2013-07-23 12:30
1246 查看
我们在编译Zigbee协议栈时,点“make”编译时可能会遇到这样的类似错误,Error[e27]: Entry "GenericApp_Init::?relay" in module Coordinator ( C:\Texas Instruments\ZStack-CC2530-2.3.0-1.4.0\Projects\zstack\Samples\GenericApp\ CC2530DB\CoordinatorEB\Obj\Coordinator.r51 ) redefined in module
Enddevice ( C:\Texas Instruments\ZStack-CC2530-2.3.0-1.4.0\Projects\zstack\Samples\ GenericApp\CC2530DB\CoordinatorEB\Obj\Enddevice.r51 )
其实是因为我们的工程中包含其中两个不同的.C文件都定义了同一个函数,编译时系统同时便宜这两个文件,连同这两个函数一起编译产生冲突。如上面的错误中,有两个Coordinator.c和Enddevice.c文件,他们都包含了对GenericApp_Init()函数的定义,故产生编译冲突。解决办法很简单,因为我们烧程序到CC2530模块时,只需烧其中一个程序就行了,故可以把其中一个屏蔽掉,方法如下:
1.在Workspace窗口中把光标放在Enddevice.c上并右击鼠标点“option“弹出一个新的窗口
2.在新窗口的左上角在”exclude from buile“前面的框框打勾,再点击右下方的”OK“确定键,就可以屏蔽此.C文件
3.点”make“编译Coordinator.c时就不会出错了
大家遇到类似错误时也可参考,希望对遇到此问题的朋友有所帮助。
本人最近才学Zigbee技术,如有错的请大家见谅,不胜感激!
Enddevice ( C:\Texas Instruments\ZStack-CC2530-2.3.0-1.4.0\Projects\zstack\Samples\ GenericApp\CC2530DB\CoordinatorEB\Obj\Enddevice.r51 )
其实是因为我们的工程中包含其中两个不同的.C文件都定义了同一个函数,编译时系统同时便宜这两个文件,连同这两个函数一起编译产生冲突。如上面的错误中,有两个Coordinator.c和Enddevice.c文件,他们都包含了对GenericApp_Init()函数的定义,故产生编译冲突。解决办法很简单,因为我们烧程序到CC2530模块时,只需烧其中一个程序就行了,故可以把其中一个屏蔽掉,方法如下:
1.在Workspace窗口中把光标放在Enddevice.c上并右击鼠标点“option“弹出一个新的窗口
2.在新窗口的左上角在”exclude from buile“前面的框框打勾,再点击右下方的”OK“确定键,就可以屏蔽此.C文件
3.点”make“编译Coordinator.c时就不会出错了
大家遇到类似错误时也可参考,希望对遇到此问题的朋友有所帮助。
本人最近才学Zigbee技术,如有错的请大家见谅,不胜感激!
相关文章推荐
- IAR的一个编译错误Error[e27]: Entry "GenericApp_Init::?relay" in module Coordinator
- 安装cocoaPods出现错误error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPA
- AndroidStudio编译错误:Error: null value in entry: blameLogFolder=null
- VC编译错误:uafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) 已经在 LIBCMT.lib(new.obj
- ERROR ITMS-90167: "No .app bundles found in the package"错误
- iOS app 发布错误 ERROR ITMS-90167: "No .app bundles found in the package"
- 修复编译Silverlight"不能找到AppManifest.xaml”的错误
- Webpack错误解决(一):ERROR in Entry module not found
- VC++6.0错误:fatal error:cannot open include file "xxxx.h"修正的一个方法
- 启动startUML的时候报错“"Exception EOleSysError in module StarUML.exe at 000AD559. "
- android studio 签名 报错Error:(3) Error: "app_name" is not translated in "de" (German), "es" (Spanish),
- R语言 错误 Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod
- VC编译错误:error LNK2019: 无法解析的外部符号 "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z),该符号在函数 "void __cdecl _com_ut
- AndroidStudio编译错误:Error: null value in entry: blameLogFolder=null
- 遇到"Unhandled exception in app.exe (QTGUID4.DLL): 0xC0000005: Access Violation"错误的解决过程
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- 编译DLL时"error LNK2005: _DllMain@12 already defined"错误
- Uboot编译出下如下错误的一个原因:In function `__aeabi_ldiv0': (.text+0x8): undefined reference to `raise'
- Android studio 编译失败Error:Could not read entry ':app:processDebugManifest' from cache taskArtifacts.b