Re: [gtk-list] **compile error**



On Thu, 14 Oct 1999 20:42:19 -0700 (PDT), * * wrote:
> I am running a program from a book by Erc Harlo.
> .
> .
> gtk_signal_connect(GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC 
> (detroy), NULL);
> .
> .
> I use the commands:
> gcc -Wall -g example.c -o `gtk-config --cflags --libs`    or
> gcc -Wall -g example.c  -o `gtk-config --cflags` `gtk-config --libs`
> .
> .
> 
> I ge t the errors as follows:
> example.c:In function 'main`.
> eample.c:32:`destroy' undeclared (first use in this function)
> eample.c:32:(Each undeclared identifier is reported only once
> eample.c:32:for each function it appears in)
> 
> 
> Please tell me why am i getting this message?.

Probably because you made a typo. There is no destroy() function in GTK,
only gtk_widget_destroy(), IIRC.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




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