ld 无法识别目标文件
我在编译我正在处理的项目时遇到问题。其他一切都工作正常,但是当我编译时,我收到此错误消息:
/usr/bin/ld:obj/content/xmSound.o: file format not recognized; treating as linker script
我不知道为什么会发生这种情况。这可能是代码中的一些错误,但我不知道。 源文件 xmSound.o 是从编译而来的< /a> 和我正在使用的 makefile 在这里。
I'm having problems with compiling a project I'm working on. Everything else works just fine, but when I compile, I get this error message:
/usr/bin/ld:obj/content/xmSound.o: file format not recognized; treating as linker script
I have no idea why this happens. It's probably some error in the code, but I don't know.
The source file xmSound.o is compiled from can be found here and the makefile I'm using is here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行“
file obj/content/xmSound.o
”并将该文件的内容与加载程序不会抱怨的其他目标文件进行比较。构建该目标文件的规则很可能是不正确的,并且您拥有的文件根本不是目标文件。
Run '
file obj/content/xmSound.o
' and compare what it says for that file with some other object file that the loader does not complain about.The chances are that the rule for building that object file is incorrect, somehow, and the file you have is not an object file at all.