当前位置: 技术问答>linux和unix
安装gtkmm的出错,不知道该怎么解决了
来源: 互联网 发布时间:2015-11-09
本文导语: [size=+1]系统是fc3,gtk是2.0,我以经安装了libsigc++-1.2.2,gtkmm版本是gtkmm-2.0.1,在./configure时好象没有什么错误,在make时,发生错误如下: 我不知道改怎么解决,那位能帮帮忙?下面是我make时的错误[/size] [code] /usr/lib/glib-2.0/include -g...
[size=+1]系统是fc3,gtk是2.0,我以经安装了libsigc++-1.2.2,gtkmm版本是gtkmm-2.0.1,在./configure时好象没有什么错误,在make时,发生错误如下:
我不知道改怎么解决,那位能帮帮忙?下面是我make时的错误[/size]
[code]
/usr/lib/glib-2.0/include -g -O2 -Wall -c context.cc -MT context.lo -MD -MP -MF .deps/context.TPlo -fPIC -DPIC -o context.lo
context.cc: In member function `const Glib::Class& Pango::Context_Class::init()':
context.cc:110: warning: statement has no effect
../../glib/glibmm/object.h: In constructor `Pango::Context::Context()':
../../glib/glibmm/object.h:74: error: `Glib::ConstructParams::ConstructParams(const Glib::ConstructParams&)' is private
context.cc:172: error: within this context
make[3]: *** [context.lo] 错误 1
make[3]: Leaving directory `/root/gtkmm/gtkmm-2.0.1/pango/pangomm'
make[2]: *** [install-recursive] 错误 1
make[2]: Leaving directory `/root/gtkmm/gtkmm-2.0.1/pango/pangomm'
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/root/gtkmm/gtkmm-2.0.1/pango'
make: *** [install-recursive] 错误 1 [/code]
我不知道改怎么解决,那位能帮帮忙?下面是我make时的错误[/size]
[code]
/usr/lib/glib-2.0/include -g -O2 -Wall -c context.cc -MT context.lo -MD -MP -MF .deps/context.TPlo -fPIC -DPIC -o context.lo
context.cc: In member function `const Glib::Class& Pango::Context_Class::init()':
context.cc:110: warning: statement has no effect
../../glib/glibmm/object.h: In constructor `Pango::Context::Context()':
../../glib/glibmm/object.h:74: error: `Glib::ConstructParams::ConstructParams(const Glib::ConstructParams&)' is private
context.cc:172: error: within this context
make[3]: *** [context.lo] 错误 1
make[3]: Leaving directory `/root/gtkmm/gtkmm-2.0.1/pango/pangomm'
make[2]: *** [install-recursive] 错误 1
make[2]: Leaving directory `/root/gtkmm/gtkmm-2.0.1/pango/pangomm'
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/root/gtkmm/gtkmm-2.0.1/pango'
make: *** [install-recursive] 错误 1 [/code]
|
../../glib/glibmm/object.h:74: error: `Glib::ConstructParams::ConstructParams(const Glib::ConstructParams&)' is private
错误不是很清楚吗?Glib::ConstructParams的拷贝构造函数是私有的,可是Pango::Context::Context()却要拷贝构造ConstructParams成员,当然不行了。
错误不是很清楚吗?Glib::ConstructParams的拷贝构造函数是私有的,可是Pango::Context::Context()却要拷贝构造ConstructParams成员,当然不行了。
|
把Glib::ConstructParams的拷贝构造函数改为public的。