I need an advice




I am trying to compile and link few files from
directory /gtk+-1.0.0/gtk. For example I am
trying to compile "gtkcolorsel.c".
I do the following :

gcc `gtk-config --cflags` `gtk-config --libs` gtkcolorsel.c -o
gtkcolorsel

and I get:

/tools/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/crt1.o: In
function `_start':
/tools/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/crt1.o(.text+0x5c)
: undefined reference to `main'
make: *** [filesel] Error 1

  Any advice ??

> Sincerely
> 
> Igor
> 
P.S> I am working with GTK  3-5 days  and with C  perhaps 3-4 weeks
:((((



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