Re: [Anjuta-list] Debug with C++ code?
- From: Andreas Volz <lists brachttal net>
- To: Anjuta-list lists sourceforge net
- Subject: Re: [Anjuta-list] Debug with C++ code?
- Date: Wed, 13 Feb 2008 21:45:14 +0100
Am Wed, 13 Feb 2008 10:42:34 +0100 schrieb Johannes Schmid:
> Hi!
>
> To build with other compiler options (no optimization), run
>
> # CFLAGS="-O0 -g" ./configure
>
> on the command line. Sorry, that's not yet possible from the UI.
I use a configure option as workaround.
dnl Check for option to enable debug
AC_MSG_CHECKING(whether to enable debugging)
AC_ARG_ENABLE(debug,
[ --enable-debug=[no/yes] enables debug build
(default=no)],, enable_debug=no)
dnl Checks for libraries
if [ ! test "x$enable_debug" != "xyes"]; then
AC_DEFINE(DEBUG, 1, [Define to enable debug build])
CXXFLAGS="-ggdb -O0"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
regards
Andreas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]