Re: conflicting types for 'g_value_get_variant'
Jacques Garrigue <[email protected]> Mon, 16 Aug 2010 11:16:36 +0900 (JST)
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
From: Florent Monnier <[email protected]> > compiling lablgtk-2.14.1 : > > + gcc ...... ml_gobject.c > > ml_gobject.c:292: error: conflicting types for 'g_value_get_variant' > /usr/include/glib-2.0/gobject/gvaluetypes.h:230: note: previous declaration of > 'g_value_get_variant' was here > > ml_gobject.c:380: error: conflicting types for 'g_value_set_variant' > /usr/include/glib-2.0/gobject/gvaluetypes.h:226: note: previous declaration of > 'g_value_set_variant' was here > > if I rename g_value_get_variant() and g_value_set_variant() in ml_gobject.c > (and appropriatly in src/gobject.ml) the compilation succeeds) > > > The file "/usr/include/glib-2.0/gobject/gvaluetypes.h" belongs to: > libglib2.0-devel-2.25.13-1mdv2011.0 I see, this looks like they introduced a new function using the same name... Should have been more careful about that when designing lablgtk. Fortunately the fix is trivial. Jacques