LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-08-2008, 09:48 AM   #1
tamilm
Member
 
Registered: Jun 2008
Posts: 43

Rep: Reputation: 15
gui


hi ,
i am tamil.i compiled simple gui program for my target.
sorce code name is test.c.i compiled this

arm-linux-gcc -o test test.c `pkg-config --cflags --libs gtk+-2.0`

it create object file test.o.but it showed error

/usr/local/arm/version/arm-linux/bin/ld:can not find -1gtk-x11-2.0
collect2:ld returned 1 exit status

i could not find the solution.can anyone help me?










thanKs and regards

Tamil.M
 
Old 07-08-2008, 10:21 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by tamilm View Post
/usr/local/arm/version/arm-linux/bin/ld:can not find -1gtk-x11-2.0
collect2:ld returned 1 exit status
It should be -lgtk-x11-2.0. The command `pkg-config --cflags --libs gtk+-2.0` expands to the list of include paths and libraries needed to compile the program. Maybe it misses the library libgtk-x11-2.0.so, even if the pkg-config utility should not report it, if not installed. Anyway check if you have the link
Code:
/usr/lib/libgtk-x11-2.0.so
and the library pointed to by the link. Otherwise you have to install it and retry the compilation. On my system (Fedora 9) the library is provided by the gtk2-devel package.
 
  


Reply



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
Cannot get GUI on any linux distro (live, install gui nor post install) 8800GTX AlteRFirE Linux - Desktop 1 07-08-2008 04:08 PM
Writing GUI front-ends: what language + what GUI library? pear Programming 7 07-07-2008 08:17 AM
[Ubuntu GUI] Changing GUI from Gnome to wmaker MangaManiac Linux - Laptop and Netbook 8 05-08-2005 03:17 PM
KDE gui vs. Gnome GUI Curt6000 Linux - Newbie 11 11-10-2004 01:37 PM
Isn't Windows 95 or 98 a better GUI solution for old machines than an old Linux GUI lynchmob09 General 10 04-20-2004 01:24 AM

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

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

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