[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
compile error wiith gtk_text_new(NULL, NULL)
- From: <chenjun1 egr msu edu>
- To: <gtk-app-devel-list gnome org>
- Subject: compile error wiith gtk_text_new(NULL, NULL)
- Date: Wed, 12 Nov 2003 04:05:10 -0000
Hi, dear all,
I declared a variable text with code : GtkWidget *text;
Then I initilize it with codes: text = gtk_text_new (NULL,NULL);
But I met the below error when compiling my code.
[root@localhost GTK]# gcc scrollview.c -o scrollview `pkg-config --cflags
--libs gtk+-2.0`
scrollview.c: In function `main':
scrollview.c:55: warning: assignment makes pointer from integer without a cast
/tmp/cc5tJ3iP.o(.text+0x23b): In function `main':
: undefined reference to `GTK_TEXT'
/tmp/cc5tJ3iP.o(.text+0x2a3): In function `main':
: undefined reference to `GTK_TEXT'
/tmp/cc5tJ3iP.o(.text+0x2dd): In function `main':
: undefined reference to `GTK_TEXT'
collect2: ld returned 1 exit status
Is it because of the version of my GTK files are too old? Or something else?
Attached is my code file, in case you have to have a look at that.
thanks & best regards,
Jennifer
scrollview.c
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]