+ -
当前位置:首页 → 问答吧 → 编译amule-dlp出错,求助

编译amule-dlp出错,求助

时间:2010-05-06

来源:互联网

Compiling wxcasframe.cpp
wxcasframe.cpp: 在成员函数‘wxImage* WxCasFrame::GetStatImage() const’中:
wxcasframe.cpp:292:58: 错误:不能直接调用构造函数‘wxFont::wxFont’
wxcasframe.cpp:292:58: 错误:对于函数类型的类型转换,移除冗余的‘::wxFont’
make[5]: *** [wxcasframe.o] 错误 1
make[4]: *** [all-recursive] 错误 1
make[3]: *** [all-recursive] 错误 1
make[2]: *** [all-recursive] 错误 1
make[1]: *** [all-recursive] 错误 1
make: *** [all] 错误 2

作者: sasa124124   发布时间: 2010-05-06

gcc4.5.patch,你就以错误搜索一下就有了。
代码:
--- aMule-2.2.6/src/utils/wxCas/src/wxcasframe.cpp~ 2008-09-06 
+++ aMule-2.2.6/src/utils/wxCas/src/wxcasframe.cpp 2010-04-26 
@@ -285,11 +285,11 @@
 #ifdef __WXMSW__
 
 memdc.
-       SetFont ( wxFont::wxFont ( 6, wxSWISS, wxNORMAL, wxBOLD ) );
+       SetFont ( wxFont ( 6, wxSWISS, wxNORMAL, wxBOLD ) );
 #else
 
 memdc.
-       SetFont ( wxFont::wxFont ( 8, wxSWISS, wxNORMAL, wxBOLD ) );
+       SetFont ( wxFont ( 8, wxSWISS, wxNORMAL, wxBOLD ) );
 #endif
 
 memdc.

作者: jarryson   发布时间: 2010-05-06