编译这个“你好世界”的例子发现at the Gnome Wiki Vala Tutorial给我一个警告。瓦拉'你好世界'的例子给出关于g_type_init的警告
class Demo.HelloWorld : GLib.Object {
public static int main(string[] args) {
stdout.printf("Hello, World\n");
return 0;
}
}
/home/scooter3/code/vala/hello_world.vala.c:55:2: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:667) [-Wdeprecated-declarations]
g_type_init();
我想要修改程序或安装一些其他版本的lib以摆脱警告。