Hello, I am a beginner who wants to build gtk+3 from scratch.now I got some errors while making it. ----------------------------------------------------------------------------------------------------------------------------------- libtool: link: warning: `E:/GTK_Bundle/lib/libgio-2.0.la' seems to be moved libtool: link: warning: `E:/GTK_Bundle/lib/libgobject-2.0.la' seems to be moved libtool: link: warning: `E:/GTK_Bundle/lib/libglib-2.0.la' seems to be moved libtool: link: warning: `E:/GTK_Bundle/lib/libcairo.la' seems to be moved libtool: link: warning: `c:/mingw/lib/libintl.la' seems to be moved Creating library file: .libs/im-cyrillic-translit.dll.a CC gtkimcontextime.lo gtkimcontextime.c: In function '_gtk_im_context_ime_dead_key_unichar': gtkimcontextime.c:316:1: error: 'GDK_dead_grave' undeclared (first use in this f unction) gtkimcontextime.c:316:1: note: each undeclared identifier is reported only once for each function it appears in gtkimcontextime.c:317:1: error: 'GDK_dead_acute' undeclared (first use in this f unction) gtkimcontextime.c:318:1: error: 'GDK_dead_circumflex' undeclared (first use in t his function) gtkimcontextime.c:319:1: error: 'GDK_dead_tilde' undeclared (first use in this f unction) gtkimcontextime.c:320:1: error: 'GDK_dead_macron' undeclared (first use in this function) gtkimcontextime.c:321:1: error: 'GDK_dead_breve' undeclared (first use in this f unction) gtkimcontextime.c:322:1: error: 'GDK_dead_abovedot' undeclared (first use in thi s function) gtkimcontextime.c:323:1: error: 'GDK_dead_diaeresis' undeclared (first use in th is function) gtkimcontextime.c:324:1: error: 'GDK_dead_hook' undeclared (first use in this fu nction) gtkimcontextime.c:325:1: error: 'GDK_dead_abovering' undeclared (first use in th is function) gtkimcontextime.c:326:1: error: 'GDK_dead_doubleacute' undeclared (first use in this function) gtkimcontextime.c:327:1: error: 'GDK_dead_caron' undeclared (first use in this f unction) gtkimcontextime.c:328:1: error: 'GDK_dead_abovecomma' undeclared (first use in t his function) gtkimcontextime.c:329:1: error: 'GDK_dead_abovereversedcomma' undeclared (first use in this function) gtkimcontextime.c:330:1: error: 'GDK_dead_horn' undeclared (first use in this fu nction) gtkimcontextime.c:331:1: error: 'GDK_dead_belowdot' undeclared (first use in thi s function) gtkimcontextime.c:332:1: error: 'GDK_dead_cedilla' undeclared (first use in this function) gtkimcontextime.c:333:1: error: 'GDK_dead_ogonek' undeclared (first use in this function) gtkimcontextime.c:334:1: error: 'GDK_dead_iota' undeclared (first use in this fu nction) gtkimcontextime.c: In function 'gtk_im_context_ime_filter_keypress': gtkimcontextime.c:391:24: error: 'GDK_space' undeclared (first use in this funct ion) gtkimcontextime.c:407:12: error: 'GDK_dead_grave' undeclared (first use in this function) gtkimcontextime.c:407:12: error: 'GDK_dead_dasia' undeclared (first use in this function) gtkimcontextime.c: In function 'gtk_im_context_ime_focus_in': gtkimcontextime.c:660:14: warning: variable 'top_hwnd' set but not used [-Wunuse d-but-set-variable] gtkimcontextime.c: In function 'gtk_im_context_ime_focus_out': gtkimcontextime.c:733:14: warning: variable 'top_hwnd' set but not used [-Wunuse d-but-set-variable] gtkimcontextime.c: In function 'gtk_im_context_ime_set_preedit_font': gtkimcontextime.c:953:9: warning: 'gtk_widget_get_style' is deprecated (declared at ../../gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' ins tead [-Wdeprecated-declarations] gtkimcontextime.c:975:5: warning: 'gtk_widget_get_style' is deprecated (declared at ../../gtk/deprecated/gtkstyle.h:672): Use 'gtk_widget_get_style_context' ins tead [-Wdeprecated-declarations] make[3]: *** [gtkimcontextime.lo] Error 1 make[3]: Leaving directory `/d/gtk_src/gtk+-3.9.10/modules/input' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/d/gtk_src/gtk+-3.9.10/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/d/gtk_src/gtk+-3.9.10' make: *** [all] Error 2 -------------------------------------------------------------------------------------------------------------------------------------- I then checked the source and find in gdk/gdkkeysyms.h,these “GDK_dead_grave ” stuff(If I didn’t get it wrong) are actually like this:”GDK_KEY_dead_grave”.Guess a “KEY_” is missing. There is a macro,where the shell said errors. #define CASE(keysym, unicode, spacing_unicode) \ case GDK_dead_##keysym: return (spacing) ? spacing_unicode : unicode; I add “KEY_” so it becomes #define CASE(keysym, unicode, spacing_unicode) \ case GDK_KEY_dead_##keysym: return (spacing) ? spacing_unicode : unicode; another macro at line 53 seems to be the same: #define IS_DEAD_KEY(k) \ ((k) >= GDK _dead_grave && (k) <= (GDK_dead_dasia+1)) I think the compiler’s gonna complain GDK_dead_grave ‘s undeclared too.. So it is right?Hope you can tell me. Regards. |