News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code::Blocks and DirectX(d3dx9.h)

Started by Berion, October 17, 2006, 06:56:29 PM

Previous topic - Next topic

Berion

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

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Berion

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.