Re: Newbie question



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...

iain
-- 
"Miss Celine Dion sings lovesongs while our cities burn"




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