问题
I'm trying to run the code located here: http://r3dux.org/2010/11/single-call-opengl-texture-loader-in-devil/
And it requires me to use DevIL, so I installed it to my c:\usr\ folder using the Win32 installer. I'm positive my environment is setup to read from the proper \lib folder as well. My linker looks like this:
-lglfw
-gluw32
-lopengl32
-lglu32
-ldevil
Everything else loads fine, but when it gets to "ldevil", the compiler (Dev-C++) throws the error: File format not recognized.
回答1:
Most likely the devil library wasn't build with the same compiler/OS/options/architecture as the one you're trying to build your application for. You'll need to build it from source or obtain the correct version.
来源:https://stackoverflow.com/questions/4443642/c-file-format-not-recognized