This is my first time using the CRT library for detecting memory leaks, and I'm using Visual C++ 2003. As mentioned in this website (http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx), I included the statements in my program
followed by another header file that contains all other header files like stdio.h, windows.h and structure/function declarations. I also have
_CrtDumpMemoryLeaks();
right before my function returns.
When I tried to build my program, I get the errors
1 2 3
error C2059: syntax error: 'constant'
error C2059: syntax error: 'string'
error C2733: second C linkage of overloaded function '_aligned_malloc_dbg' not allowed
Can you post the full error(s) as output by the compiler please.
And the lines where your errors say the error is at?
Anyways, VS03 is quite old, even older than VS06 D:
Probably you just need to update your IDE.
You can get the free VS08 express, or a trial of the VS10, or the completely free Code::Blocks (In case you choose Code::Blocks, take the version including MingW)