Hello. I am trying to compile Irrlicht with GCC on Windows with DX9, and I am using the latest Code::Blocks. I downloaded the latest Irrlicht on the SVN(actually yesterday), and downloaded DirectX 9 and the Platform SDK. I opened the Code::Blocks project for Windows on GCC and linked MinGW, the Platform SDK and DX9 into it. I then went to IrrCompileConfig.h and added this line:
Then I just compiled it. It ran through all the compilation fine until the end with the object file. I got these errors: http://irrlichtirc.g0dsoft.com/paste/186
d3d9x.lib is linked in using #pragma comment (lib, "d3dx9.lib"), but that's a MSVC pragma. With GCC, you'll have to link manually against both d3d9.lib and d3dx9.lib.
I got it to work. I did what you said. But there is something you must know if you guys plan to do DX9 in GCC. YOU MUST USE MINGW LIBS. Link to MinGW folder, and in the lib there are all of the libraries in .a format you need. Also, all of the libraries have a prefix of lib. For example, I had to link libd3dx9.a. Also, you will need to copy the include from DX9 into the MinGW folder. The last thing is, with every Irrlicht application, you must have the Direct3D dll. I might make a seperate post explaining how to do GCC with DX9/Code::Blocks later.