Re: [gtk-list] Weird compilation problem with GtkProgressBar



Calin VATAVU - 5A wrote:
> 
> I'm using Redhat 5.0 and I've installed gtk+-1.0.1-3 and
> gtk+-devel-1.0.1-3.
> When I'm trying to compile the folowing program (gtktst.c):
> 
> #include <gtk/gtk.h>
> #include <glib.h>
> 
> int main()
> {
>   GtkProgressBar *pbar;
>   gfloat a;
> 
>   a = pbar->percentage;
> }
> 
> I get the folowing errors:
> 
> gtktst.c: In function `main':
> gtktst.c:9: structure has no member named `percentage'
> 
> Too weird... But GtkProgressBar (or _GtkProgressBar) HAS the member
> percentage !!
> Even if I say :
>   _GtkProgressBar *pbar;
> I get the same errors!
> 
> Please help.

It compiled with no problems on my debian 2 with gtk-1.0.5. Maybe you
should upgrade your RedHat and/or the gtk. They are both old (especially
the RedHat 5.0).

Ionutz



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