/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
main.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [consolo] Error 1
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: main.o: Relocations in generic ELF (EM: 40)
main.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [consolo] Error 1
是因为上次的编译的版本的残留引起的,最简单的方法make clean,然后再..../bin/qmake ....pro,make一下
本文介绍了一种常见的make编译错误及其解决方案。错误提示为ld无法读取main.o文件符号,原因是文件格式不正确。文章提供了简单的解决办法:首先使用make clean清理旧的目标文件和依赖项,然后重新运行qmake生成Makefile文件,并再次执行make命令。
1441

被折叠的 条评论
为什么被折叠?



