clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses
precision
Eiso AB
e.ab at chem.leidenuniv.nl
Mon Jun 11 07:15:24 PDT 2007
Vadim Zeitlin <vadim <at> wxwidgets.org> writes:
>
> On Fri, 08 Jun 2007 16:42:01 +0200 Eiso AB [...] wrote:
>
> EA> in trying to compile wxGTK-2.8.4 under Centos5 I'm getting an error
> EA> at this point after make
> ...
> EA> ../src/gtk/clipbrd.cpp: In function 'void selection_handler(GtkWidget*,
> EA> GtkSelectionData*, guint, guint, void*)':
> EA>
> EA> ../src/gtk/clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses
> precision
>
> The line 254 contains GPOINTER_TO_UINT() macro which is supposed to cast
> guint to "void *" correctly even on 64 bit platforms. If this results in an
> error for you it looks like a wrong glibconfig.h (where this macro is
> defined) is used or maybe you use some ancient GTK+ version which had a bug
> in it.
>
> For the reference, I can build wx 2.8.4 just fine under 64 bit Linux and
> the macro is defined like this here:
>
> #define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
>
> Regards,
> VZ
>
thanks,
I installed some extra rpms:
compat-glibc.i386 compat-glibc.x86_64 compat-glibc-headers.x86_64
glib-devel.i386
and now make finished ok. [not sure which of the packages actually made
the difference]
Eiso
More information about the wx-users
mailing list