From: jkaeber Date: Fri, 4 Apr 2008 06:11:43 +0000 (+0000) Subject: Explain function and importance of -DSENF_DEBUG X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=7c61b0afd1beef4c772da64c7f1115877584af31;p=senf.git Explain function and importance of -DSENF_DEBUG git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@779 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Mainpage.dox b/Mainpage.dox index 7aa5ca3..77611d1 100644 --- a/Mainpage.dox +++ b/Mainpage.dox @@ -84,6 +84,17 @@ The library is only tested with gcc-3.4 and 4.0 on Linux. On other POSIX platforms with a BSD Socket API, the library should be usable, possibly with some tweaking (except for the Scheduler, which relies on \c epoll) + + \section senf_compiler_options Compiler and Linker Options + + If SENF is compiled in debug mode (SENF_DEBUG is defined), exception messages will + automatically include a stack backtrace. For this to work, you need to add the -rdynamic option + to all link commands. This feature depends on gcc and the GNU-libc. + + It is very important that both the SENF library and the application using it are either + compiled with or without this compiler switch (-DSENF_DEBUG). Otherwise, the compiler will emit + error messages which might be hard to debug. + */ /** \page senf_build Building the SENF framework @@ -404,6 +415,7 @@ // Local Variables: // mode: c++ // fill-column: 100 +// :vim:textwidth=100 // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american"