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)
> 
> Does anybody have any advice on how to solve this problem?
> Thanks
> 

I had the same problem on my system when I upgraded to rh6.0. All I had to
do was rebuild the glib and gtk+ packages on my system. It's really easy,
just grab the *.src.rpm files and use rpm to rebuild:

  rpm --rebuild glib*.src.rpm

Then install the new binary rpm files for glib:

  rpm -Uvh glib*.i386.rpm

Next, do the same for gtk+.


Ted Roth



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