compile error wiith gtk_text_new(NULL, NULL)



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


Attachment: scrollview.c
Description: Binary data



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