本文主要是介绍编译内核错误 multiple definition of `yylloc‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
编译内核错误
# make ARCH=arm CROSS_COMPILE=arm-mix410-linux- uImageHOSTLD scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:99: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:544: scripts/dtc] Error 2
make: *** [Makefile:1069: scripts] Error 2
解决方法,在以下文件添加extern
scripts/dtc/dtc-lexer.lex
这篇关于编译内核错误 multiple definition of `yylloc‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!