zvt compile problems



This is my program:
-----------------------------------
#include <gtk/gtk.h>
#include <zvt/zvtterm.h>
int main (int argc, char *argv[])
{
	GtkWidget *window,*term,*vbox,*hbox,*button;
	gtk_init (&argc,&argv);
	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	
	g_signal_connect (G_OBJECT
(window),"destroy",G_CALLBACK(gtk_main_quit),NULL);
	g_signal_connect (G_OBJECT
(window),"delete_event",G_CALLBACK(gtk_main_quit),NULL);
	
	hbox = gtk_hbox_new (FALSE,0);
	gtk_container_add (GTK_CONTAINER (window),hbox);
	gtk_widget_show (hbox);
	
	button = gtk_button_new_with_label ("Quit");
	gtk_box_pack_start ( GTK_BOX(hbox),button,FALSE,FALSE,0 );
	gtk_widget_show (button);
	g_signal_connect (G_OBJECT
(button),"clicked",G_CALLBACK(gtk_main_quit),NULL);
	
	term = zvt_term_new_with_size(81,24);
	gtk_widget_ref (term);
	gtk_object_set_data_full (GTK_OBJECT (window), "term",
term,(GtkDestroyNotify) gtk_widget_unref);
	GTK_WIDGET_SET_FLAGS(term,GTK_HAS_FOCUS + GTK_CAN_FOCUS + GTK_VISIBLE +
GTK_SENSITIVE + GTK_HAS_GRAB);
	gtk_widget_show (term);
	gtk_box_pack_start (GTK_BOX (hbox), term, TRUE, TRUE, 0);
	
	gtk_widget_show (window);
	gtk_main ();
	return 0;
}
----------------------------

when I compile the program ,I got errors below:

---------------------------------------------------
In file included from /usr/include/gnome-1.0/zvt/vtx.h:25,
                 from /usr/include/gnome-1.0/zvt/zvtterm.h:28,
                 from base.c:3:
/usr/include/gnome-1.0/zvt/vt.h:100: parse error before `pid_t'
/usr/include/gnome-1.0/zvt/vt.h:100: warning: no semicolon at end of
struct or union
/usr/include/gnome-1.0/zvt/vt.h:173: parse error before `}'
/usr/include/gnome-1.0/zvt/vt.h:206: parse error before `vt_forkpty'
/usr/include/gnome-1.0/zvt/vt.h:206: warning: data definition has no
type or storage class
In file included from /usr/include/gnome-1.0/zvt/zvtterm.h:28,
                 from base.c:3:
/usr/include/gnome-1.0/zvt/vtx.h:63: field `vt' has incomplete type
In file included from base.c:3:
/usr/include/gnome-1.0/zvt/zvtterm.h:98: parse error before
`GdkColorContext'
/usr/include/gnome-1.0/zvt/zvtterm.h:98: warning: no semicolon at end of
struct or union
/usr/include/gnome-1.0/zvt/zvtterm.h:100: parse error before `*'
/usr/include/gnome-1.0/zvt/zvtterm.h:100: warning: data definition has
no type or storage class
/usr/include/gnome-1.0/zvt/zvtterm.h:119: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:120: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:121: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:122: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:123: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:124: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:125: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:126: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:127: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:128: parse error before `:'
/usr/include/gnome-1.0/zvt/zvtterm.h:129: parse error before `:'
------------------------------
this is my compile command:
gcc base.c -o base -I/usr/include/gnome-1.0/ `pkg-config --cflags --libs
gtk+-2.0`

I dont know why,please help me!thanks




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