LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem with GTK program compilation. (https://www.linuxquestions.org/questions/programming-9/problem-with-gtk-program-compilation-417194/)

pratsadhu 02-19-2006 12:44 PM

problem with GTK program compilation.
 
hi
Am having a problem compiling my GTK programs.

It gives an error as follows:
$ gcc base.c -o base `gtk-config --cflags --libs`

/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status


Also, if i compile it another way,
gcc test.c -o test `gnome-config --cflags --libs --gnomeui`

:/usr/bin/ld: cannot find -lSM
collect2: ld returned 1 exit status


Thank you all,

mjmwired 02-19-2006 01:24 PM

I do not know what distribution you are using but are you sure you have all of you development libraries installed for gtk, xserver, etc. ?

Example in fedora: gtk2-devel, glib2-devel, xorg-x11-devel

pratsadhu 02-20-2006 10:52 AM

Am actually using Gtk 1.2.8 version, and am sure that all the librarieshav been installed.


All times are GMT -5. The time now is 01:07 AM.