Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: DrIFT on December 25, 2009, 03:04:44 pm

Title: DirectX template
Post by: DrIFT on December 25, 2009, 03:04:44 pm
I am trying to create a directX template. since i kind find a working one.
Am done with most of the things. Only one problem remaining.
I get the following error in debug mode (release mode runs perfectly)

HelloDirect3D.obj||error LNK2019: unresolved external symbol __CrtSetDbgFlag referenced in function _WinMain@16|
bin\Debug\project1.exe||fatal error LNK1120: 1 unresolved externals|
||=== Build finished: 2 errors, 0 warnings ===|


I searched the net and found that i have to #include <crtdbg.h>
But it is already included. I have read that some debug lib files are to be linked. But i am not sure which ones?
Please help
Title: Re: DirectX template
Post by: Jenna on December 25, 2009, 03:08:21 pm
Your question is not related to C::B in any way and therefore violates our forum rules.

Topic locked !


Sorry I overread that you try to create a new C::B direct/X template.

I suggets to have a look at the existing diretcX-wizard from trunk, as it was updated to be useable with DX8 and DX9 in svn r5983.
Title: Re: DirectX template
Post by: DrIFT on January 02, 2010, 07:23:35 pm
No solution so far.

Ne help would be appreciated.
Title: Re: DirectX template
Post by: stahta01 on January 02, 2010, 08:35:16 pm
Google says __CrtSetDbgFlag is in any MS Debug C Run-Time Libraries.

http://msdn.microsoft.com/en-us/library/abx4dbyh%28VS.71%29.aspx

Tim S.