Page 1 of 1

Dev-cpp, directx problem

Posted: Fri Dec 02, 2005 6:17 pm
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