Re: [Anjuta-list] Debug with C++ code?
- From: Sang Chul Choi <choi biology rutgers edu>
- To: Andreas Volz <lists brachttal net>
- Cc: "Anjuta-list lists sourceforge net" <Anjuta-list lists sourceforge net>
- Subject: Re: [Anjuta-list] Debug with C++ code?
- Date: Wed, 13 Feb 2008 17:10:12 -0500
Thank you,
Sang Chul
On Wed, 2008-02-13 at 15:45 -0500, Andreas Volz wrote:
> 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
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Anjuta-list mailing list
> Anjuta-list lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/anjuta-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]