clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses precision

Eiso AB e.ab at chem.leidenuniv.nl
Fri Jun 8 07:42:01 PDT 2007



in trying to compile wxGTK-2.8.4 under Centos5 I'm getting an error
at this point after make


[...]
/software/src/WX/wxGTK-2.8.4/buildgtk/bk-deps g++ -c -o coredll_clipbrd.o
-I.pch/wxprec_coredll -D__WXGTK__            -DWXUSINGDLL -DWXMAKINGDLL_CORE
-DwxUSE_BASE=0 -fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/home/e.ab/software/src/WX/wxGTK-2.8.4/buildgtk/lib/wx/include/gtk2-ansi-release-2.8
-I../include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2
-fno-strict-aliasing -I/usr/include/libgnomeprintui-2.2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/libgnomeprint-2.2
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libxml2
-I/usr/include/libpng12 ../src/gtk/clipbrd.cpp

../src/gtk/clipbrd.cpp: In function 'void selection_handler(GtkWidget*, 
GtkSelectionData*, guint, guint, void*)':

../src/gtk/clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses precision
make: *** [coredll_clipbrd.o] Error 1



configure gives me this setup:

Configured wxWidgets 2.8.4 for `x86_64-unknown-linux-gnu'

   Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for 
gnomeprint
   Should wxWidgets be compiled into single library?       no
   Should wxWidgets be compiled in debug mode?             no
   Should wxWidgets be linked as a shared library?         yes
   Should wxWidgets be compiled in Unicode mode?           no
   What level of wxWidgets compatibility should be enabled?
                                        wxWidgets 2.4      no
                                        wxWidgets 2.6      yes
   Which libraries should wxWidgets use?
                                        jpeg               sys
                                        png                sys
                                        regex              sys
                                        tiff               sys
                                        zlib               sys
                                        odbc               no
                                        expat              sys
                                        libmspack          no
                                        sdl                no






Any idea what I should do to get past this point? Or is it a bug?

thanks-Eiso


-- 




More information about the wx-users mailing list