User forums > Using Code::Blocks
DirextX and Code::Blocks
MortenMacFly:
--- Quote from: Dark_Phoenix on June 17, 2007, 03:44:46 pm ---So if I want to stick with VS2003 which lib should I use, the one in the platform sdk/lib directory or the one from c::b?
--- End quote ---
My suggestion:
- install Code::Blocks *only* (without compiler - e.g. a nightly)
- install the MinGW compiler/libs/includes in a separate directory
- install any DevPak's in another separate directory
- install the MSVC 2003 compiler/libs/includes in a separate directory
- install the MS platform SDK and Direct/X SDK in another 2 separate directories
- in C::B: setup the MinGW compiler to point to the MinGW compiler suite (optionally including DevPak folders)
- in C::B: setup the MSVC compiler to point to the MSVC 2003 compiler suite (optionally including platform and Direct/X SDK)
Having done this you should be able to have a clean setup and compilation for either MinGW or MSVC 2003. No mixed folders anymore.
With regards, Morten.
Dark_Phoenix:
OK, so everything is already set up like you suggested and it still comes up with thoses unresolved externals. But after some further investigation I have discovered that it works just fine when I have the vuild target set to release. I only get those errors when it is set to debug.
Biplab:
MS compilers are sissy about Debug and Release libraries as they are linked against different CRTs. I believe there should be some Debug lib of DirectX which will allow you to compile in Debug mode.
Albenejean:
--- Quote from: Dark_Phoenix on June 17, 2007, 05:07:24 pm ---OK, so everything is already set up like you suggested and it still comes up with thoses unresolved externals. But after some further investigation I have discovered that it works just fine when I have the vuild target set to release. I only get those errors when it is set to debug.
--- End quote ---
Make sure that your debug config is OK...
For those libs, I set them in the general options, and not in the debug or release options.
--- Quote ---I believe there should be some Debug lib of DirectX
--- End quote ---
Yes they are d3dx9d.lib, d3d9d.lib, ... . But I prefer using the DirectX Control Panel.
Navigation
[0] Message Index
[*] Previous page
Go to full version