I have in the past compiled a successful version of my GDK game, using Code::Blocks as IDE and selecting VS2008 C++ compiler. Therefore, is very possible with the right compiler settings.
I chose to use Code::Blocks as it will always output a good clean version of my game, similar-better intellisense. Also seems to run on any computer with a fairly recent WinOS and DirectX, whereas I've had complaints from people running my game when using VS2008 Express or VS2008 in the nature of directx incompatibility or some file dependency.
Now.. I have tried setting up Code::Blocks recently after a fresh Windows7 install, with the following:
GDK (Game Development Kit with Update NOV08)
DirectXSDK August 2008
Code::Blocks 8.02
Visual Studio 2008 (full)
detecting VS2005/2008 C++ Compiler in Code::Blocks.
I linked up to DirectXSDK and the GDK packages by Build Options > Search Directories, to revelant lib and header files, under Compiler for header directories, and Linker for lib directories.
Problem 1: At first compile atls.lib can not be found, or missing. Many people have come across this error, which can be resolved by simply using VS2008 GDK wizards. But as I am using Code::Blocks, I searched up atls.lib and linked in the Search Directories facility.
This resolved the problem with some errors.
Problem 2: I have some complaints at this stage in MSVCRT.lib, with the compiler output recommending /NODEFAULTLIB setting for this library. The second complaint is - subsystem is not defined, but console is assumed.. So, in Build Options > Other options I enter:
/SUBSYSTEM:CONSOLE
/NODEFAULTLIB:msvcrt
This solves everything but one issue.
LIBCMT.lib(crt0.obj)||error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup|
This is as far as I have got. Have I missed anything early on? And I hope the Game Creators can appreciate users that want to use Code::Blocks as an IDE, rather than simply VS2008 and the GDK wizards, (which I believe do actually help you to compile a GDK project first time.)
Any solutions please? Before you post "VS2008 is better in every way so use that!!!" can you please first see the title of this thread.
StarCrypt - a classic vertical super-shoot in 3d