Re: gtk_init() crashes



Sébastien Tricaud wrote:
Le lun 10/03/2003 à 11:02, Russell Shaw a écrit :

Hi,

I'm trying to get a gtk example to run which i just compiled:

russell main~/gtk: ./example

** (example:2922): WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10"
** (example:2922): WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10"
** (example:2922): WARNING **: All font failbacks failed!!!!

In gdb, the crash happens in gtk_init(). How can i trace into gtk_init() with gdb?
I currently compile with:

  CCFLAGS = -Wall -g `pkg-config --cflags glib-2.0 gtk+-2.0` ;
  LINKLIBS = `pkg-config --libs glib-2.0 gtk+-2.0` ;


AFAIK, the best way to have a great ouput with gdb is to have the
following cflag.
CCFLAGS = -Wall -O0 -ggdb `pkg-config --cflags glib-2.0 gtk+-2.0` ;

Hope this help you to debug,

Hi,
Unfortunately, i still can't step into gtk_init() with gdb. I haven't done
much linux development before. Is there a special version of gtk libraries
that has more debugging info?





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