Posted: Sun May 04, 2008 11:29 am Post subject: How to compile a program (GTK+2.0) on Ubuntu Hardy?
Hello everybody,
This might seem silly to ask but did not find the solution to my question yet.
I could not get my program successfully compiled on Ubuntu, although my program was successfully compile on Fedora 8 without any warning messages.
Any one please tell me how to compile a program on Ubuntu?
Here is what I used on Fedora:
" gcc -Wall -g -o myprogram myprogram.c `pkg-config --cflags --libs gtk+-2.0` "
Posted: Sun May 04, 2008 5:33 pm Post subject: Ubuntu missing libgtk-2.0-dev?
Hi,
Your suggestion was right, Ubuntu did not install the required libraries by default. After installing the " libgtk-2.0-dev", I could compile my program without an error message.
Thanks,
Soulivanh