LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2004, 05:13 PM   #1
asafbr
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
include <gtk/gtk.h>


Hi,
I use red-hat 7.3 and 9. I want to write a small code which rerieves the text from current window.When trying to include <gtk/gtk.h> the compiler doesn't find it.
What should I do?
 
Old 06-19-2004, 01:03 PM   #2
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
gcc -O3 `gtk-+1.2-config --cflags --libs` -o myprog myprog.c

I am not sure if the script is called "gtk-+1.2-config" or "gtk-config-+1.2", you can also use gtk-2.0 on RH 9, just replace the 1.2 with 2.0. Have fun!
 
Old 06-20-2004, 06:38 AM   #3
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
nope it is called pkg-config:

$> gcc `pkg-config --libs --cflags gtk+-2.0` -o prog prog.c

this should work...
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
GTK-2.0 and include files Hubas Programming 2 03-15-2002 07:35 AM

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

All times are GMT -5. The time now is 06:49 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