LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2006, 12:44 PM   #1
pratsadhu
LQ Newbie
 
Registered: Dec 2005
Location: India
Posts: 9

Rep: Reputation: 0
Unhappy 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,
 
Old 02-19-2006, 01:24 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
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
 
Old 02-20-2006, 10:52 AM   #3
pratsadhu
LQ Newbie
 
Registered: Dec 2005
Location: India
Posts: 9

Original Poster
Rep: Reputation: 0
Am actually using Gtk 1.2.8 version, and am sure that all the librarieshav been installed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK compilation. shendeswanand Programming 4 01-29-2006 11:48 AM
gtk program compilation error RohanShrivastav Programming 5 02-16-2005 07:12 AM
gtk+ compilation problem maciekish Linux - Software 3 01-11-2005 07:03 AM
Compilation problem with gtk+-2.4.0 Kanaflloric Linux - Software 2 06-17-2004 10:43 PM
GTK-1.2 C compilation error GabeF Programming 2 05-12-2003 08:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration