Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Berion on October 17, 2006, 06:56:29 pm

Title: Code::Blocks and DirectX(d3dx9.h)
Post by: Berion on October 17, 2006, 06:56:29 pm
I use Code::Blocks Oct 12 2006 and mingw32-gcc-3.4.2.
I installed DirectX SDK Oct 2006.

Project build options->Linker: d3d9, d3dx9
Project build options->Directories->Compiler: C:\Programme\Microsoft DirectX SDK (October 2006)\Include
Project build options->Directories->Linkerr: C:\Programme\Microsoft DirectX SDK (October 2006)\Lib\x86

I include:
#include <d3d9.h>
#include <d3dx9.h>

I compile the dll, everything is fine and works.

Then I add D3DXMatrixPerspectiveFovRH:

undefined reference to `D3DXMatrixPerspectiveFovRH@20'

Did I install the sdk correct?
Are the options correct?
Did I forget something?
Is this the correct forum?

Thanks for the help.

Alexander Meisel
Title: Re: Code::Blocks and DirectX(d3dx9.h)
Post by: stahta01 on October 17, 2006, 09:11:12 pm
I found this using google, no idea if it will work.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6939

Tim S
Title: Re: Code::Blocks and DirectX(d3dx9.h)
Post by: Berion on October 18, 2006, 09:12:25 pm
If I don't use D3DXMatrixPerspectiveFovRH and use only functions of d3d9.h I can compile it and run it. And I linke both with an lib file.