如题,在编译的时候提示警告:Warning[w6]: Type conflict for external/entry "dis_bp", in module main against external/entry in module LCD; prototyped function vs K&R function 这是什么意思,怎么解决?
Ken Wang:
dirtwillfly,
这个问题是在编译什么样的工程,基于什么样的芯片出现的?光看这个比较难定位问题。
谢谢
li chang:
Warning[w6]: Type conflict for external/entry "characterUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "clientCharCfgUUID", in module gattservapp against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "deviceNameUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "gapServiceUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "gattServiceUUID", in module gattservapp against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "periConnParamUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes
协议栈编译时候出现的,cc2541芯片
Warning[w6]: Type conflict for external/entry "periPrivacyFlagUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "primaryServiceUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "reconnectAddrUUID", in module gapgattserver against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "secondaryServiceUUID", in module gatt_client against external/entry in module gatt_uuid; types have different memory attributes Warning[w6]: Type conflict for external/entry "serviceChangedUUID", in module gatt_server against external/entry in module gatt_uuid; types have different memory attributes
wei shi5:
回复 li chang:
旁友,请问这个问题解决了吗,我现在也碰到这个问题了,有点莫名其妙,吃个饭回来就变这样了
Susan Yang:
回复 wei shi5:
Warnin[w6]的问题可能是由于头文件错误产生,根据您的错误提示,应该是重复定义了
wei shi5:
回复 Susan Yang:
不是的,之前编译都没有错误,吃个饭回来就这样了,而且都是协议栈的东西,我根本都没动过,
灰小子:
回复 wei shi5:
别忘了#include 相应的头文件
如果头文件是自己写的库,注意函数类型等是否有错误