[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

lidt knas med gtk_init



Hej på listen

jeg har lidt problemer med en segmentation fault som jeg ikke helt forstår. Jeg er lidt novice til gdk og gtk men har stor erfaring med ANSI C.

/* this main is only used for testing */
int main(int argc, char *argv[])
{
 GtkWidget *window;
 GtkWidget *drawing;
 GdkPixmap *pixmap;

 g_thread_init(NULL);
 gdk_threads_init();
 gtk_init(&argc, &argv);

og så crasher den ellers ved gtk_init med fejlen (taget fra gdb) ->

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 9073)]
0x404a6ded in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb)

Nogen der har en god forklaring på det?
den er kompileret med
CC = gcc

all: new_pic
new_pic: new_pic.c
$(CC) new_pic.c -g -o pic_view `pkg-config --cflags --libs gtk+-2.0 gthread`


Hilsen Anders

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *