cppannotations/yo/exceptions/compiling.obs
fbbrokken 6881bc3814 The trunk directory contains the latest version (6.4.0c) of the C++
Annotations. 

The branches and tags directory are empty, since I couldn't
svnadmin import a repostitory dump. Many earlier versions exist, though, and
if you want the full archive, just let me know and I'll send you the svnadmin
dump of my full C++ Annotations archive.

Frank B. Brokken <f.b.brokken@rug.nl>



git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@3 f6dd340e-d3f9-0310-b409-bdd246841980
2006-09-04 08:26:34 +00:00

20 lines
899 B
Text

OBSOLETE, not included anymore in the final document:
The tt(Gnu g++) compiler requires a special flag to compile sources in which
exceptions are used. It is quite possible that other compilers require similar
flags, but that hasn't been investigated by us.
If the keywords tt(throw, try) or tt(catch) are used in a sourcetext, or if a
sourcefile contains a function calling another function which may throw an
exception the
centt(-fhandle-exceptions)
must be used when these sources are compiled.
The easy way-out would of course be to include the tt(-fhandle-exceptions) all
the time, but it appears as though this doesn't always work properly,
sometimes resulting in linker-problems.
Fortunately it is usually well known whether a function may throw exceptions,
either directly or indirectly, and so the need for the
centt(-fhandle-exceptions)
flag is also usually well known.