LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux GUI Programming (https://www.linuxquestions.org/questions/linux-software-2/linux-gui-programming-739651/)

supravat 07-13-2009 12:02 AM

Linux GUI Programming
 
I have created some projects using C language. But my project is terminal based. I have to type commands. I want to insert GUI or graphical view to my project. I heard of gtk but when i want to include the following header #include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

and compile the .c file with cc then it says that gtk.h, gdkkeysyms.h are not found.

Please help me.....

Uncle_Theodore 07-13-2009 12:12 AM

Well, first of all, make sure the needed (development) libraries and headers are installed in your system. Which distribution do you use? Use your package manager to check what's installed and install the missing parts. Usually, the headers for gtk are installed in
/usr/include/gtk-XX/gtk/
but it can vary.
Second, read this tutorial
http://library.gnome.org/devel/gtk-tutorial/stable/
at least the part about writing and compiling the HelloWorld program. Pay attention to the compilation command as it's not very obvious.

Good Luck.


All times are GMT -5. The time now is 08:50 PM.