Re: [gtk-list] g_print causes a segmentation fault



On Fri, 3 Sep 1999, Gilles Roy wrote:

> I compile the following code with : gcc -Wall -g test.c -o test
> `gtk-config --cflags --libs`
> 
> #include <gtk/gtk.h>
> 
> int main(int argc, char *argv[])
> {
>     g_print("Hello world\n");
> 
>     return 0;
> }
> 
> 
> It compiles correctly, but when I run it, I get:
> Segmentation fault (core dumped)
> 

please run that program from gdb and produce a backtrace, i.e.:

$ gdb test
>r
[segv]
>bt
[backtrace]


---
ciaoTJ



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