Author Topic: DirectX template  (Read 4723 times)

Offline DrIFT

  • Single posting newcomer
  • *
  • Posts: 2
DirectX template
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: DirectX template
« Reply #1 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.
« Last Edit: December 31, 2009, 10:16:43 pm by jens »

Offline DrIFT

  • Single posting newcomer
  • *
  • Posts: 2
Re: DirectX template
« Reply #2 on: January 02, 2010, 07:23:35 pm »
No solution so far.

Ne help would be appreciated.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: DirectX template
« Reply #3 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.

C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org