Annoying DirectX Linker error

I'm getting an error when calling Direct3DCreate9

I know how to fix this error. I suppose I need to link something in my IDE (I'm using Bloodshed Dev-C++). I have DirectX 10, but there doesn't seem to be a Direct3DCreate10. I'm new to DirectX and have had several similar problems in the past.

The actual error is as follows:
1
2
In function `Z7initD3DP6HWND__':
[Linker error] undefined reference to `Direct3DCreate9@4'
Topic archived. No new replies allowed.