From e3ec00e71d8f197c3977a29c7eeab46dda9a58d6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 1 Mar 2000 23:19:25 +0000 Subject: [PATCH] dont use C++ std lib --- src/libCom/misc/locationException.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libCom/misc/locationException.h b/src/libCom/misc/locationException.h index 9eb28bc6a..85908ce36 100644 --- a/src/libCom/misc/locationException.h +++ b/src/libCom/misc/locationException.h @@ -9,8 +9,7 @@ #define locationException_h #include -#include -#include +#include #include "cantProceed.h" @@ -47,9 +46,8 @@ template inline void throwExceptionWithLocation (T &parm, const char *pFileName, unsigned lineNo) { # ifdef noExceptionsFromCXX - cerr << "C++ exception in file=" << pFileName - << " at line=" << lineNo - << " - cant continue"; + fprintf (stderr, "C++ exception in file=%s" at line=%u, and no compiler support - cant proceed.\n", + pFileName, lineNo); cantProceed ("No compiler support for C++ exception"); # else throw sourceFileLocation (parm, pFileName, lineNo);