[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Newbie question
- From: Alessio Zanon <znnalx yahoo it>
- To: iain <iain prettypeople org>, gtk-app-devel-list gnome org
- Subject: Re: Newbie question
- Date: Wed, 15 Oct 2003 09:37:51 +0200 (CEST)
--- iain <iain@prettypeople.org> ha scritto: > On
Tue, 2003-10-14 at 18:01, Tristan Van Berkom
> wrote:
> > >
> > >"assignment discards qualifiers from pointer
> target
> > >type"
> > >
> > >on line:
> > >
> > > msg = gtk_entry_get_text(GTK_ENTRY(display));
> > >
> > >What does it mean???
> > >
> > >
> > it means that `msg' was declared as `const
> [something] * msg;'
> > and now that you are assigning something to it,
> the compiler must
> > discard `const'.
>
> Or the other way around.
> gtk_entry_get_text returns const char *, and msg is
> probably char *.
> either declare const char *msg, or cast it
> msg = (char *) gtk_entry_get_text...
With cast everything works!!
Thanks to all
Alessio Zanon
> iain
> --
> "Miss Celine Dion sings lovesongs while our cities
> burn"
>
______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]