Re: newb needs help compiling...



On Sat, 2004-02-07 at 15:34, Dan Joseph wrote:
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`

This is wrong it should read:

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

--
J5




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