LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 553|回复: 1

找不到gnome_app_new?

[复制链接]
发表于 2004-12-20 17:08:20 | 显示全部楼层 |阅读模式
今天第一次用Anjuta,照着例子竟然编译不能通过,盼兄弟们指点一下:
#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"


void
on_BT_OK_clicked (GtkButton  *button,  gpointer  user_data)
{
        GtkWidget *entry = lookup_widget(GTK_WIDGET(button),"ENTRY");
        GtkWidget *msgbox = gnome_app_new("Hello_World","Hello World");
        gchar *text1, *text2;
       
        text1 = gtk_entry_get_text(GTK_ENTRY(entry));
        text2 = strcat("Hello, ",text1);
        gnome_app_message(GNOME_APP(msgbox),text2);
}

提示说gnome_app_new是一个未定义的引用,我的系统是debain sid, :help
发表于 2004-12-23 18:23:58 | 显示全部楼层
#incllude <gnome.h>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表