Skip to main content
gamedev.net
🔒 Locked

MMGR error- xdebug

Started by Coluna May 19, 2006 at 1:44 PM 2 replies 700+ views
Original Post
Coluna
Coluna
Hello all; I use Paul Nettle MMGR to check memory leaks and so on. Before i chenge from vc6.0 to vs2003, all works fine...but now i got some errors like this \Vc7\include\xdebug(29) : error C2544: expected ')' for operator '()' in

_CRTIMP2 void * __cdecl operator new(size_t,
	const std::_DebugHeapTag_t&, char *, int)
		_THROW1(std::bad_alloc);	// allocate from the debug CRT heap

_CRTIMP2 void * __cdecl operator new[](size_t,
	const std::_DebugHeapTag_t&, char *, int)
		_THROW1(std::bad_alloc);	// allocate array from the debug CRT heap

_CRTIMP2 void __cdecl operator delete(void *,
	const std::_DebugHeapTag_t&, char *, int)
		_THROW0();	// delete if new for debug CRT heap fails
...


The file where the error appears is , that is included due to ...can anybody helps me?
mldaalder
mldaalder
Always include MMGR after stl related things.

If you can't avoid it, include nommgr.h before your stl includes.
Evil Steve
Evil Steve
To expand on what mldaalder said, there's details on the order you should include things in in mmgr.cpp (Or it may be in the header, I don't recall offhand).
Coluna
Coluna
Thanks guys....i forgot to change the order of my includes...see ya!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.