Am getting that annoying "illegal use of precompiled header" error again! Can't remember how I fixed it last time. (That's why I'm now keeping notes!)
***********************
Also, need to add thorough input-checking: since debug is going to be called mostly when things are going *wrong*, it really cannot make any assumptions about how it's going to be called.
extern "C"
all the C++ interface routines!)