RE: [gtk-list] Re: problems compiling simple stuff




On 29-Apr-98 KC5TJA wrote:
>> Well, I tried
>> gcc -lgtk -lgdk -lglib -L/usr/local/include/gtk window.c
>> and -L/usr/local/lib, -L/usr/local/lib/glib/include and a few others, but
>> none
>> seemed to work, all of them dumped a ton of:
> 
> When I installed gtk+-1.0.0 on my computer I was told to use the
> gtk-config utility, like so:
> 
> gcc `gtk-config --cflags` window.c
> gcc -o window window.o `gtk-config --libs`
> 
> I wonder if it'd work then on your system?  Might be worth a shot, but I
> make no garuntees... :)
> 

Well, I tried what you said, and on the first part, the:
gcc 'gtk-config --cflags' window.c

it said:

 gcc: gtk-config --cflags: No such file or directory

and dumped me back to prompt...

if I do just 
gtk-config --cflags
it tells me
-I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include
and if I do 
gtk-config --libs
it tells me
-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm
does that help any?



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