strange compiling behaviour



Hi,

   The following is my problem:
My program was supposed to read:

   ...
   gtk_widget_set_events(widget, GDK_BUTTON_PRESS_MASK);
   ...

but instead i misspelled it to be

   ...
   gtk_widget_set_event(widget, GDK_BUTTON_PRESS_MASK);
   ...

The code compiled without a complaint from gcc (3.0.4 btw), only the linker said 'undefinded reference'. Isn't this odd? Is there a function called 'gtk_widget_set_event', and if it is, why does the linker complain? If not, why does gcc not complain?
   Is this a gcc bug or a gtk bug? Or is it me? Any clues anyone?




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