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 08-19-2003, 10:12 PM   #1
Zerodark
Member
 
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Rep: Reputation: 30
gtk coding...


i'm trying to learn how to code GTK, but the problem i'm having is it won't compile. the first error i get is this, and i think this is what causes the rest of the errors.

base.c:1:21: gtk/gtk.h: No such file or directory


so it can't find the gtk header file, how can i point it in the direction of this?

i'm using slackware 9.0 with dropline GNOME. any help would be appreciated, thanks
 
Old 08-20-2003, 12:53 AM   #2
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 32
well did you install the gtk package
http://gtk.org/download/
also you should mention if you are programming in gtk 1.2, 2.0, or 2.2
 
Old 08-20-2003, 03:51 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'd certainly advise using gtk2 now, and not old gtk, it's much more advanced with a more suitable API
 
Old 08-20-2003, 10:05 PM   #4
Zerodark
Member
 
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Original Poster
Rep: Reputation: 30
alright, i installed the gtk 2.2.2 package and i still get this when i try to compile a simple little thing.


gcc: pkg-config --cflags --libs gtk+-2.0: No such file or directory
base.c:1:21: gtk/gtk.h: No such file or directory
base.c: In function `main':
base.c:6: `GtkWidget' undeclared (first use in this function)
base.c:6: (Each undeclared identifier is reported only once
base.c:6: for each function it appears in.)
base.c:6: `window' undeclared (first use in this function)
base.c:10: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
 
Old 08-21-2003, 05:49 AM   #5
chus43
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
You have to install pkg-config
 
  


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
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
Coding a WM? SocialEngineer Programming 1 05-20-2005 08:32 AM
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

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

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