Re: debug build for gtkmm



On Thu, May 25, 2006 at 11:07:49AM +0530, Yogesh Arora wrote:
> i tried building gtkmm with this command
> 
> ./configure --prefix=$PREFIX --enable-debug=yes --disable-gtk-doc
> --enable-examples=no --enable-demos=no --enable-docs=no
> 
> but i m not able to debug gtkmm

Poke around in a generated Makefile and look for CXXFLAGS; it should
have -g (possibly with something after it, like 2 or gdb) in it
somewhere.  If it does, that should be all you need.  If it doesn't,
then configure may be picking up some CXXFLAGS from somewhere (it's
leaked into your environment, set somewhere, perhaps?), so you need to
prefix your configure command with CXXFLAGS=-g, as follows:

CXXFLAGS="-g -O2" ./configure --prefix=$PREFIX <remaining configure args>

- Michael

-- 
mouse, n: a device for pointing at the xterm in which you want to type.
                -- Fortune
Visit me on the Web: http://www.elehack.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]