error: conflicting types for 'cyg_int32'
原创
©著作权归作者所有:来自51CTO博客作者细嗅蔷薇fei的原创作品,请联系作者获取转载授权,否则将追究法律责任
1.编译错误信息
In file included from ../../Include/../ThirdParty/axtls/Include/axTLS/os_int.h:58,
from ../../Include/../ThirdParty/axtls/Include/axTLS/tls1.h:44,
from ../../Include/../ThirdParty/axtls/Include/axTLS/ssl.h:75,
from f:/MyProject/9665x_Wi-Fi_Media3.0_r30857_0802_2017/Project/DemoKit/SrcCode/UIApp/Network/UIAppNetwork.c:27:
c:\mytools\destools\codesourcery\sourcery g++ lite\bin\../lib/gcc/mips-sde-elf/4.4.1/../../../../mips-sde-elf/include/stdint.h:79: error: conflicting types for 'cyg_int32'
../../Include/../ThirdParty/eCos/Include/cyg/infra/cyg_type.h:224: note: previous declaration of 'cyg_int32' was here
c:\mytools\destools\codesourcery\sourcery g++ lite\bin\../lib/gcc/mips-sde-elf/4.4.1/../../../../mips-sde-elf/include/stdint.h:80: error: conflicting types for 'uint32_t'
../../Include/../ThirdParty/eCos/Include/sys/bsdtypes.h:57: note: previous declaration of 'uint32_t' was here
错误要点:stdint.h:79: error: conflicting types for 'cyg_int32'
previous declaration of 'cyg_int32' was here
找到报错的地方:typedef signed long int32_t;
typedef signed cyg_halint32 cyg_int32 ;
后续,在文件MakeOption.txt中修改,错误消失:
#----------------------------------------------------------------------
# Use eCos kernel or uITRON kernel
#
# ON : Use eCos kernel and light weight uITRON kernel compatible wrapper
# OFF : Use light weight uITRON kernel
#----------------------------------------------------------------------
#export USE_ECOS_KERNEL := ON
export USE_ECOS_KERNEL := OFF