Hi,

On Wed, 2007-04-11 at 00:19 +0530, vivek shah wrote:
> 
> hi,
>     I wrote the following program just to start off programming Gtk 
> #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;
>     }
> 
> When I ran 
> gcc -o gtk1 gtk1.c `pkg-config --cflags --libs gtk+-2.0`
> 
> It didnt compile and says unknown library gtk 

Do you have the equivalent -dev package on you're system? (i.e.
libgtk2.0-dev)?  This will be dependant on which system you're using,
but if you're using a Linux distribution, this package (or a similarly
named one) should be available through you're package manager.

If this doesn't help, if you reply with what system (distro) you're
using, maybe someone can help further.

Thanks
Don

_______________________________________________
gnome-love mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-love

Reply via email to