User forums > Help
Can't find crtdbg.h
jmeuf:
Hi,
I am trying to compile a source library which needs crtdbg.h
C::B can't find it and I checked that it is not included in the 'include' folder.
What can I do ? (...change your compiler. Nann, I was joking!!) :lol:
Thanks.
MortenMacFly:
--- Quote from: jmeuf on January 29, 2007, 11:21:00 pm ---What can I do ? (...change your compiler. Nann, I was joking!!) :lol:
--- End quote ---
Why not? Your project obviously is based on the Microsoft compiler suite (there you can find the "crtdbg.h"). But never-ever try to mix those header files (e.g. copy the MS one to the MinGW/GCC include folder...)
With regards, Morten.
jmeuf:
That's what I feared ...
I would like to avoid as much as possible to go for Visual.
Is there any other compiler such DevC++ that can handle that ?
troels:
Try this:
#ifdef _MSC_VER
#include <crtdbg.h>
#else
#define _ASSERT(expr) ((void)0)
#define _ASSERTE(expr) ((void)0)
#endif
jmeuf:
[solved] I finally reinstalled C::B aside 'VC++ Toolkit 2003' and 'Platform SDK' which provides the missing crtdbg.h file (in [pSDK_folder]\Include\crt). The process is described in:
http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE
What I am still missing now are precompiled headers which is available, as I understood, only for MinGW in rc2. I assume that it will be soon implemented on other compilers.
Thanks for your help.
Navigation
[0] Message Index
[#] Next page
Go to full version