This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re[2]: setup.exe exception handling guidelines
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- To: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Cc: "CygWin Apps" <cygwin-apps at cygwin dot com>
- Date: Tue, 30 Apr 2002 14:29:48 +0200
- Subject: Re[2]: setup.exe exception handling guidelines
- Organization: Syntrex, Inc.
- References: <FC169E059D1A0442A04C40F86D9BA7600C5F59@itdomain003.itdomain.net.au>
- Reply-to: Pavel Tsekov <ptsekov at syntrex dot com>
Hello Robert,
Tuesday, April 30, 2002, 2:08:37 PM, you wrote:
>> What about the standard C++ library exception class ? In the
>> recent threads regarding setup and libgetopt++ I red that we
>> libstdc++ can be used now ?
RC> Yes, libstdc++ can be used now. Whats the header for the C++ library
RC> exception class?
#include <exception>
Don't try to look this file in /usr/include/g++-3/. Its found in the
/usr/lib/gcc-lib/target/version/include.
This is the root of all exception and is defined by the C++ language
not the stl library. Exceptions provided by the standard C++ library
are defined in <stdexcept> header. This includes out_of_range,
invalid_argument, overflow_error.