Dev-cpp, directx problem

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
lincsimp
Posts: 21
Joined: Sat Mar 12, 2005 10:11 pm

Dev-cpp, directx problem

Post by lincsimp »

hi
I've decided to add directx support to my version of the engine. I followed the instructions in the FAQ forum. i get these errors:



bin/obj/CD3D9HLSLMaterialRenderer.o(.text+0x31a):CD3D9HLSLMaterialRenderer.cpp: undefined reference to `D3DXCompileShader@40'
bin/obj/CD3D9HLSLMaterialRenderer.o(.text+0x47a):CD3D9HLSLMaterialRenderer.cpp: undefined reference to `D3DXCompileShader@40'
bin/obj/CD3D9ShaderMaterialRenderer.o(.text+0x6f9):CD3D9ShaderMaterialRenderer.cpp: undefined reference to `D3DXAssembleShader@28'
bin/obj/CD3D9ShaderMaterialRenderer.o(.text+0x809):CD3D9ShaderMaterialRenderer.cpp: undefined reference to `D3DXAssembleShader@28'
bin/obj/CD3D9Texture.o(.text+0x1507):CD3D9Texture.cpp: undefined reference to `D3DXFilterTexture@16'
bin/obj/CD3D9Texture.o(.text+0x1797):CD3D9Texture.cpp: undefined reference to `D3DXFilterTexture@16'
collect2: ld returned 1 exit status

make.exe: *** [bin/Irrlicht.exe] Error 1

Execution terminated

What have I done wrong? It seems like I forgot to link something.. I'm llinking:

-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lglu32 -lopengl32
-ld3dx9

cheers
Post Reply