Re: gtk_init() crashes



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,

-- 
Sébastien Tricaud 
http://www.gscore.org




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