GNOME Bugzilla – Bug 649749
glade_clipboard_get_has_selection not exported
Last modified: 2013-08-17 12:43:46 UTC
Created attachment 187470 [details] [review] Patch to add a space after the name of the function glade_clipboard_get_has_selection The declaration of glade_clipboard_get_has_selection in glade-clipboard.h doesn't have a space between the function name and the opening parenthesis of the parameters. Because of this, the gladeui.def target in gladeui/Makefile.am skips the function, and it will not be exported. This event causes a compilation error in Windows while compiling glade3.exe: CCLD glade.exe glade-glade-window.o:glade-window.c:(.text+0x48bb): undefined reference to `_glade_clipboard_get_has_selection' glade-glade-window.o:glade-window.c:(.text+0x4d65): undefined reference to `_glade_clipboard_get_has_selection' collect2: ld returned 1 exit status The attachment will fix the bug the easier way: by adding a space after the function name. But I think a better way would be to change the filter in gladeui.def so cases like this will be caught, preventing additional bugs in the future, and there might be other cases like this that are still unnoticed.