Author Topic: Code::Blocks and DirectX(d3dx9.h)  (Read 8233 times)

Berion

  • Guest
Code::Blocks and DirectX(d3dx9.h)
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: Code::Blocks and DirectX(d3dx9.h)
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Berion

  • Guest
Re: Code::Blocks and DirectX(d3dx9.h)
« Reply #2 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.