stdlib errors

G

Guest

I am porting some code form vs2003 to vs2005 - it is unmanaged CPP. The
solution consists of several library projects and a console project. The
library projects all build fine but when I get to the console appliation, I
get lots of errors in stdlib.h - C2733 and C2059 errors. Does anyone know
how to resolve?
 
G

Guest

Jim Bish said:
I am porting some code form vs2003 to vs2005 - it is unmanaged CPP. The
solution consists of several library projects and a console project. The
library projects all build fine but when I get to the console appliation, I
get lots of errors in stdlib.h - C2733 and C2059 errors. Does anyone know
how to resolve?

Update: This only occurs in Debug mode - release builds work fine. All of
the errors relate to memory allocation routines - lines 592-600 in stdlib.h.
I really need this to work - could someone please help?

Jim
 
G

Guest

Jim Bish said:
Update: This only occurs in Debug mode - release builds work fine. All of
the errors relate to memory allocation routines - lines 592-600 in stdlib.h.
I really need this to work - could someone please help?

Jim

this issue has been resolved - we were defining _CRTDBG_MAP_ALLOC for some
memory checking stuff. If this is defined, the stdlib.h includes cause
issues - remove and compile works fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top