|
发表于 2004-12-27 09:44:34
|
显示全部楼层
> gtkmm-list mailing list
> gtkmm-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
That is for libsigc++ 1.x. In 2.x, the namespace is sigc (all
lowercase), and there isn't a public slot function that I know of - for
the example you will need to use sigc::mem_fun(). I also had to figure
this out as I was reading through the tutorial book. Check which
libsigc++ you are using - if you are using Gtkmm 2.4 then you have to be
using libsigc++ 2.x.
HTH,
Matt
以上是我在gtkmm的官方mailing list上面问问题的时候,别人的回答,我按着回答试了一下,发现果然是这样子。就是:
在libsigc++2.0上面名字空间是sigc(全部是小写)。而且第四章的例子中slot不是public的,用mem_fun()才行。各位大虾试试看呢?可能这样就会正确的。
刚开始在windows学习gtkmm编程的VC编程员们,要注意哦!
祝大家 |
|