Re: newb needs help compiling...



Dan Joseph <djoseph74 earthlink net> writes:

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`

Try:

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



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