# d3dx9 and dev-c++, NO GO???

## Recommended Posts

HI. I am using dev-C++ IDE I have been killing myself trying to get this stupid program working. I have included the relevant header files, d3d9.h and d3dx9.h. When I compile it comes up with three linking errors, namely: [Linker error] undefined reference to Direct3DCreate9@4' [Linker error] undefined reference to D3DXMatrixLookAtLH@16' [Linker error] undefined reference to D3DXMatrixPerspectiveFovLH@20' I then goto project options->parameters and type "-ld3d9" into the linker input bit. The first error goes away: [Linker error] undefined reference to D3DXMatrixLookAtLH@16' [Linker error] undefined reference to `D3DXMatrixPerspectiveFovLH@20' I then type "-ld3dx9" in the linker bit again but still get the same two errors. WHY!!! d3d9.lib d3dx9.lib and are in the same directory, so if it can d3d9.lib, why can it not find d3dx9???? I have every resource on the internet and do not know why, they all say to do what I have done but it is not working! Is d3dx9 not compatible with dev-C++ or something? PLEASE HELP!!!

##### Share on other sites
Dev-CPP's compiler dosen't really do very well with .lib's. You need the .a's really for Dev-CPP.

Here is a post that talks about configuring DirectX with Dev-CPP. It works. I have tried it before.

Configure DirectX with Dev-CPP

I hope that helps!

##### Share on other sites
I still use dev-cpp when writing DX apps, as chad said dev-cpp uses .a files and not .lib so install the DX9 dev-pak from here and youll be ready to go.

##### Share on other sites
Thanx guys. Yeah, I read something about making .a files from the .lib's, but I didn't quite understand it so i just disregarded it and carried on trying to with the lib's.

I guess this is the way then, Thanx.

## Create an account

Register a new account

• ### Forum Statistics

• Total Topics
627701
• Total Posts
2978708

• 21
• 14
• 12
• 10
• 12