Re: [gtk-list] I need an advice



On Fri, 22 May 1998, Igor Furlan wrote:

> 
> 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':

Hi Igor,

this is not a problem with gtk, it's more a problem of understanding c,
compiling and linking. In short: gtkcolorsel provides a function to create
a color selection dialog, like the file selection dialog. It is not an
application, so your linker finds no entry point in the compiled
'program'. 
The possible use of the color selection dialog can be adapted from the
example in examples/filesel/filesel.c

If you have more problems with this, feel free to mail me directly,
because this problems are really not gtk related.

Regards
Karsten



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