newb needs help compiling...



Hi Everyone,

        I have a simple program that I am trying to compile.  It does nothing
more than build an empty window.  My code is below.  I believe the
problem is in the #include <gtk/gtk.h> line.  I don't think its
including it.  I have Fedora setup, using GCC to compile.  Here is my
compile:

gcc -Wall -g main.cc -o main `pkg-config --cflags gtk+-2.0 pkg-config
--libs gtk+2.0`

I have GTK installed at:

/usr/include/gtk-2.0

I haven't installed anything manually.  I had it all installed upon
installing Fedora.  

Here are the first errors I get:

Package pkg-config was not found in the pkg-config search path.
Perhaps you should add the directory containing `pkg-config.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pkg-config' found

Can someone point me in the right direction on how to fix this?  I'm not
at all a linux expert, but am competent enough to get this fixed with
some guidance.

Thank you in advance.

-Dan Joseph




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]