Anonymous - 2010-11-06

compiler: gcc
When compiling stlport with exceptions disabled, it gives an error. The reason is the following:

ostream.h, line 186:

#if !defined (_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT)
          if (!uncaught_exception())
#endif

One of the headers automatically disables this define, however with exceptions disabled, uncaught_exception() is undefined.

Solution: change the first line to

#if !defined (_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT) && !defined (_STLP_NO_EXCEPTIONS)

Please note that I created a custom cmake build system instead of using the supplied one, but to me this looks like a generic bug.