mr_ss
06-20-2001, 03:23 AM
I write a small program that displays window on the screen using gtk.
i am using Linux 6.2.
The code is like..
#include<gtk/gtk.h>
int main(int argc,char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return(0);
}//main
when i compiled it with
g++ jtest.cpp -o jtest 'gtk-config --cflags --libs'
The error is :
g++: gtk-config --cflags --libs: No such file or directory
in file included from /usr/include/gdk/gdktypes.h:33
/usr/include/gdk/gdk.h:31
/usr/include/gtk/gtk.h:31
from jtest.cpp:3
/usr/include/glib.h:66 glibconfig.h: No such file or directory.
Any help will be highly appreciated...
i am using Linux 6.2.
The code is like..
#include<gtk/gtk.h>
int main(int argc,char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return(0);
}//main
when i compiled it with
g++ jtest.cpp -o jtest 'gtk-config --cflags --libs'
The error is :
g++: gtk-config --cflags --libs: No such file or directory
in file included from /usr/include/gdk/gdktypes.h:33
/usr/include/gdk/gdk.h:31
/usr/include/gtk/gtk.h:31
from jtest.cpp:3
/usr/include/glib.h:66 glibconfig.h: No such file or directory.
Any help will be highly appreciated...