That would be the Direct3D helper import library. I think it's d3d.lib or perhaps d3d9.lib.
That would be the Direct3D helper import library. I think it's d3d.lib or perhaps d3d9.lib.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Ok, I have added DXSDK\Lib to include directories and the include path under Include directories. Are there other things that I need to link? Or is it the fact that I have the up to date PSDK and DX 9b SDK? Do they not run together?
There's a .lib file for Direct3D, you need to add that to the libraries.
No reason why the PSDK and DXSDK should conflict.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
How do I add it to the libraries. I would have though having DXSDK\Lib in library directories would work.
No, you need to add it to the Additional Libraries field in the "Input" subpoint of the "Linker" configuration.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
OMG, thank you so much, I just got Direct X Working
I came upon this thread while searching for how to do this myself, so I'll post my solution.
You can still use code::blocks and you don't have to do that retarded MinGW conversion.
1) Download Visual Studio 2005 Express from microsoft
2) Code::blocks will now detect the MSVC++ 2003 compiler
3) Go to build->compile options. Select the MSVC++ 2003 compiler, set it as default, then go to the 'programs' tab. You need to select the correct directory. For me, it was 'C:\Program Files\Microsoft Visual Studio 8\VC'.
4) This is not enough, as code::blocks is still unable to find the libs and includes. So add Microsoft Visual Studio 8\VC\lib and Microsoft Visual Studio 8\VC\include to the compiler directories.
5) The compiler will still choke at this point because it can't find all its files. I solved this by moving all the dlls from Microsoft Visual Studio 8\VC\Common7\IDE\ to Microsoft Visual Studio 8\VC\bin.
6) You now have to add msvcrt.lib (from Microsoft Visual Studio 8\VC\lib) and msvcrtd.lib to your project.
7) It should now be able to actually compile.
After you've done this, you can go through the normal motions of adding the DirectX SDK include and lib directories.