Re: gint to gchar: g_sprintf



On Friday 19 December 2003 16:46, Miguel Pignatelli wrote:

.. snipped

you should ommit the type specification of addid:
g_sprintf (addid, "%d", add);

Still same. Is g_sprintf not there in gtk1.2/glib? Tried with 2.0 too doesn't 
work? I have included glib.h gtk/gtk.h. Beats me why it doesn't work.

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2                         clude -I/usr/X11R6/include    
-g -O2 -Wall -c `test -f 'callbacks.c' || echo './
callbacks.c: In function `dbase_add':
callbacks.c:21: warning: implicit declaration of function `g_sprintf'
gcc  -g -O2 -Wall   -o project4  main.o support.o interface.o callbacks.o 
-L/usr                        lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl 
-lXi -lXext -lX11 -lm


-- 
Sukrit K Mehra
Email: sukrit mehra amaltaas biz





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