View Single Post
Old Aug 17th, 2007, 2:42 AM   #1
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
gtk header problem

Hi guys, I am new to programming on linux, and I am having problems getting my first attempt at an app to compile. although I already have the lib-gtk2.0 library installed I keep getting this error when trying to compile my main.c file.

Here is the error I'm receiving...
"main.c:10:21: error: gtk/gtk.h: No such file or directory"

And here is what I have in my main...

c Syntax (Toggle Plain Text)
  1. #ifdef HAVE_CONFIG_H
  2. # include <config.h>
  3. #endif
  4.  
  5. #include <gtk/gtk.h>
  6.  
  7. #include "interface.h"
  8. #include "support.h"
  9.  
  10. int
  11. main (int argc, char *argv[])
  12. {
  13. GtkWidget *BuddySelector;
  14.  
  15. #ifdef ENABLE_NLS
  16. bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
  17. bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
  18. textdomain (GETTEXT_PACKAGE);
  19. #endif
  20.  
  21. gtk_set_locale ();
  22. gtk_init (&argc, &argv);
  23.  
  24. add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
  25.  
  26. BuddySelector = create_BuddySelector ();
  27. gtk_widget_show (BuddySelector);
  28.  
  29. gtk_main ();
  30. return 0;
  31. }

This of course is all generated by Glade so I'm assuming I am just missing some package or something?

thanks for taking a look at this for me.

btw: in case someone was curious, I'm working on a pidgin plugin, there was this plug-in called sendtosome in gaim that i really loved but it doesn't exist in pidgin so I decided to make it myself.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote