Re: problem compiling



On 2002.11.18 09:13 francex tiscali it wrote:
I'm trying to compile 2 programs.
But Compiler returns errors like this:

interface.c:284: `vbox_tot' undeclared (first use in this
function)

I look at 284 row and I see:
GtkWidget * vbox_tot = ....

and so vbox_tot is declared.
vbox_tot is not declared at start of a function, but in the middle of
it.

Defining variables in a middle is allowed in C99 but not in older standards. Upgrade your compiler or talk to the program's author to downgrade the language dialect to an older version.

Why my compiler returns this error? Missing any library? or Gtk
problem?
Do I must move 'GtkWidget *vbox_tot;' at start of function? I know
that for other people, this is not necessary, It compiles...

That would fix the problem for you, I believe.


/pawel

I use GTK 2.0.8-1.

(sorry for my english)
thx
Francesco

__________________________________________________________________
Tiscali ADSL. Scopri la fantastica promozione di Natale: tutto Gratis
fino
al 9 gennaio!
Abbonati ora: prima ti abboni, pił risparmi!
http://point.tiscali.it/adsl/index.shtml



_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




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