undefined reference to Direct3DCreate9@4'

与世无争的帅哥 提交于 2019-12-08 03:57:56

问题


I have a problem with Code::Blocks (version 13.12) with TDM-GCC compiler (version 4.7.1, 32 bit) and DirectX SDK june_2010.

I managed to link these DirectX libraries with my project somehow, at least it's not showing cannot find -ld3dx9 anymore. Now I get undefined reference to Direct3DCreate9@4' and it shows undefined reference to every Matrix function.

Is this wrong/incompatible DX library linking related issue with codeblocks?

I googled many sites with people having the same issues, but these solutions didn't help me. I remember last year when I worked with DX I had similar problems and I was able to solve them, but now I can't find anything. Is it possible that Code::Blocks and its compiler version changes caused this?

Most of solutions I found : use #pragma comment and link in project->build options. As I told, I did both of these things and no luck.

Thank you.

来源:https://stackoverflow.com/questions/29288405/undefined-reference-to-direct3dcreate94

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