Syslab Sales and Services Pvt Ltd. wrote:

>         Thanks for your help about the -lgtk thing!!!
> however I still haven't been able to get that program to compile!
> this is what's happening
> 
> 
> [root@localhost /root]# gcc -o samp -lgtk -static sample.c

Static libraries have to be specified *after* the file which uses
them. When a static library is linked, only those functions which are
known to be required are linked in.

Try putting the -lgtk last.

> And when I use
>         gcc -o samp -lgtk sample.c
> 
> I get a whole lot of error messages some of which are as follows...

[undefined gdk_* references snipped]

You also need need libgdk, e.g.

        gcc -o samp -lgtk -lgdk sample.c

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to