wxc-0.91.0.0无法安装

时间:2015-02-12 04:07:14

标签: haskell wxwidgets cabal reactive-banana

我试图在cabal沙箱中安装reactive-banana,wx,wxcore。运行cabal install --only-dependencies时会出现以下错误消息:

src\cpp\eljlistctrl.cpp: In function 'int ListCmp(long int, long int, long int)':
src\cpp\eljlistctrl.cpp:16:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
src\cpp\eljlistctrl.cpp:16:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
src\cpp\eljlistctrl.cpp: In function 'bool wxListCtrl_SortItems(wxListCtrl*, void*, void*)':
src\cpp\eljlistctrl.cpp:478:41: error: cast from 'EiffelSort* {aka _EiffelSort*}' to 'long int' loses precision [-fpermissive]
src\cpp\eljlistctrl.cpp:478:44: error: invalid conversion from 'int (*)(long int, long int, long int)' to 'wxListCtrlCompare {aka int (*)(long long int, long long int, long long int)}' [-fpermissive]
C:\wxWidgets-3.0.2\include/wx/msw/listctrl.h:342:10: error:   initializing argument 1 of 'bool wxListCtrl::SortItems(wxListCtrlCompare, wxIntPtr)' [-fpermissive]

有什么问题以及如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

此文件中的代码似乎是错误的,即使在64位版本中也使用32位类型。除非在以后的版本中修复,否则唯一的解决方案是将其构建为32位,即使用32位Haskell安装。