Re: strange compiling behaviour
- From: Havoc Pennington <hp redhat com>
- To: Simon Eilting <s-eilting gmx de>
- Cc: gtk-list gnome org
- Subject: Re: strange compiling behaviour
- Date: 24 Mar 2002 15:10:05 -0500
Simon Eilting <s-eilting gmx de> writes:
>
> 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?
>
gcc will only complain about that if you are using "-Wall",
maybe that's the issue.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]