haulm 发表于 2007-12-30 18:55:29

MGC更新至快照3后,stardict 3.0 编译失败

n file included from stardict.cpp:71:
class_factory.hpp:13: error: `GtkTooltips' has not been decla
red
class_factory.hpp:13: error: ISO C++ forbids declaration of `
parameter' with no type
In file included from stardict.cpp:77:
stardict.h:83: error: ISO C++ forbids declaration of `GtkTool
tips' with no type
stardict.h:83: error: expected `;' before '*' token
stardict.cpp: In member function `void AppCore::Create(gchar*
)':
stardict.cpp:308: error: `tooltips' was not declared in this
scope
stardict.cpp:308: error: `gtk_tooltips_new' was not declared
in this scope
stardict.cpp:308: warning: unused variable 'gtk_tooltips_new'
In file included from mainwin.cpp:35:
stardict.h:83: error: ISO C++ forbids declaration of `GtkTool
tips' with no type
stardict.h:83: error: expected `;' before '*' token
mainwin.cpp: In member function `void TopWin::Create(GtkWidge
t*)':
mainwin.cpp:90: error: 'class AppCore' has no member named 't
ooltips'
mainwin.cpp:90: error: `gtk_tooltips_set_tip' was not declare
d in this scope
mainwin.cpp:117: error: 'class AppCore' has no member named '
tooltips'
mainwin.cpp:129: error: 'class AppCore' has no member named '
tooltips'
mainwin.cpp:144: error: 'class AppCore' has no member named '
tooltips'
mainwin.cpp: In member function `void LeftWin::Create(GtkWidg
et*, bool)':
mainwin.cpp:1248: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1248: error: `gtk_tooltips_set_tip' was not decla
red in this scope
mainwin.cpp:1259: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1269: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1280: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1291: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1304: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1314: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp: In member function `void ToolWin::Create(GtkWidg
et*)':
mainwin.cpp:1503: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1503: error: `gtk_tooltips_set_tip' was not decla
red in this scope
mainwin.cpp:1518: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1536: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1550: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1550: error: `gtk_tool_item_set_tooltip' was not
declared in this scope
mainwin.cpp:1564: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1574: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1589: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:1550: warning: unused variable 'gtk_tool_item_set
_tooltip'
mainwin.cpp: In member function `void BottomWin::Create(GtkWi
dget*)':
mainwin.cpp:2710: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:2710: error: `gtk_tooltips_set_tip' was not decla
red in this scope
mainwin.cpp:2724: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:2734: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:2756: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:2766: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:2776: error: 'class AppCore' has no member named
'tooltips'
mainwin.cpp:2788: error: 'class AppCore' has no member named
'tooltips'
make: *** Error 1
make: *** Waiting for unfinished jobs....
make: *** Error 1
make: Leaving directory `/usr/src/mBuild/BUILD/stardict-3.                                                               0.0.1/src'
make: *** Error 1
make: Leaving directory `/usr/src/mBuild/BUILD/stardict-3.                                                               0.0.1/src'
make: *** Error 1
make: Leaving directory `/usr/src/mBuild/BUILD/stardict-3.                                                               0.0.1'

sejishikong 发表于 2007-12-30 19:21:45

系统里已经带了3.0.0.1啊,我又重新编译了一次,正常。

haulm 发表于 2007-12-30 19:39:00

我现用系统的gtk2版本是 2.12.2,stardict的确无法编译,使用倒是没什么问题。

mandrakechina 发表于 2008-1-1 00:01:32

gtk版本太低

KDE 发表于 2008-1-1 11:57:00

原帖由 mandrakechina 于 2008-1-1 00:01 发表 http://www.linuxfans.org/bbs/images/common/back.gif
gtk版本太低
目前最高版本才 2.12.3 何以见得版本太低导致?

mandrakechina 发表于 2008-1-1 17:28:00

因为我在2.12.3中编译成功了 :mrgreen: :mrgreen:

sejishikong 发表于 2008-1-1 21:33:00

原帖由 mandrakechina 于 2008-1-1 17:28 发表 http://www.linuxfans.org/bbs/images/common/back.gif
因为我在2.12.3中编译成功了 :mrgreen: :mrgreen:
这个,呵呵,不可能的,我编译就是在2.12.2下的。
页: [1]
查看完整版本: MGC更新至快照3后,stardict 3.0 编译失败