Re: g_printf



W liście z śro, 14-07-2004, godz. 03:05, Charles Schmidt pisze: 
On Tue, 2004-07-13 at 20:39, Russell Shaw wrote:
Hi,
When i compile a simple gtk 2.4.3 program, i get an error:

   main.c: In function `on_destroy':
   main.c:14: warning: implicit declaration of function `g_printf'
   gcc -ggdb -Wall -O0 `pkg-config --libs gtk+-2.0 glib-2.0` main.o gtkled.o -lm 
-o panel
   (4 of 5): warning: implicit declaration of function `g_printf'

In main.c, i have:

   #include<glib.h>
   #include<gtk/gtk.h>
   #include<gtk/gtksignal.h>


cat /usr/include/glib-2.0/glib.h shows there's no gprintf.h:

You're probably looking for g_print()

Well, there's supposed to be g_printf() too, and <glib.h> should include
<glib/gprintf.h>. Seems like bug, please report in bugzilla if you're
sure it's not your fault. If not, investigate your distro / source /
build method, whatever may have changed the headers. For now, you should
be able to workaround it by adding #include <glib/gprintf.h> manually.

Cheers,
Maciej

-- 
"Tautologizm to coś tautologicznego"
   Maciej Katafiasz <mnews2 wp pl>
       http://mathrick.blog.pl




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