[ODE] How I Compiled ODE Using MSVC7

Nate W coding at natew.com
Mon Jan 27 16:09:01 2003


On Sun, 26 Jan 2003, Jeff Weber wrote:

> STEP4:
> Opened "c:\ode-0.035\ode\src\error.cpp" and commented out all the "exit(1);
> 
> [...] if you figure out how to compile without having to comment out
> those exit(1) and abort(1) functions let me know.

How about declaring your own, something like:

void exit (int i)
{
#ifdef _DEBUG
	DebugBreak ();
#endif
	ExitProcess ();
}

Then if it happens in a debug build you'll open the debugger so you can
get a stack trace.

-- 

Nate Waddoups
Redmond WA USA
http://www.natew.com