ld doesn't recognize object file
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 li开发者_如何学Cnker 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.
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.
精彩评论