Re: Struct Problem
- From: Allin Cottrell <cottrell wfu edu>
- To: Pablo Fischer <exilion yifan net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Struct Problem
- Date: Sat, 2 Nov 2002 23:17:38 -0500 (EST)
On 2 Nov 2002, Pablo Fischer wrote:
text = gtk_entry_get_text((data)->nombre);
g_print("hola%s\n", text);
It runs good.. BUUUUT.. when I compile it... I get 2 warnings:
prueba_estruct.c: En la función `verificar':
prueba_estruct.c:11: aviso: pasando el argumento 1 de
`gtk_entry_get_text' de tipo de apuntador incompatible
prueba_estruct.c:11: aviso: asignación descarta calificadores del tipo
del destino del apuntador
You haven't shown us the declaration of the variable "text", but it
should be
const gchar *text;
(For the other problem someone has already given you the answer,
GTK_ENTRY(data).)
Allin Cottrell.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]