C++ “File format not recognized”?

拜拜、爱过 提交于 2019-12-12 05:45:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!