+ -
当前位置:首页 → 问答吧 → 急渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐

急渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐渐

时间:2011-09-28

来源:互联网

gcc -o xiao xiao.c `pkg-config --cflags gtk+-2.0` -g -Wall -lpthread
/tmp/ccMsYmV8.o(.text+0x12): In function `callback':
/mnt/hgfs/share/xiao.c:5: undefined reference to `g_print'
/tmp/ccMsYmV8.o(.text+0x22): In function `destroy':
/mnt/hgfs/share/xiao.c:10: undefined reference to `gtk_main_quit'
/tmp/ccMsYmV8.o(.text+0x44): In function `main':
/mnt/hgfs/share/xiao.c:21: undefined reference to `gtk_init'
/tmp/ccMsYmV8.o(.text+0x51):/mnt/hgfs/share/xiao.c:22: undefined reference to `gtk_window_new'
/tmp/ccMsYmV8.o(.text+0x6a):/mnt/hgfs/share/xiao.c:24: undefined reference to `gtk_window_get_type'
/tmp/ccMsYmV8.o(.text+0x76):/mnt/hgfs/share/xiao.c:24: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0x7f):/mnt/hgfs/share/xiao.c:24: undefined reference to `gtk_window_set_title'
/tmp/ccMsYmV8.o(.text+0xa1):/mnt/hgfs/share/xiao.c:28: undefined reference to `gtk_object_get_type'
/tmp/ccMsYmV8.o(.text+0xad):/mnt/hgfs/share/xiao.c:28: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0xb6):/mnt/hgfs/share/xiao.c:28: undefined reference to `gtk_signal_connect_full'
/tmp/ccMsYmV8.o(.text+0xc9):/mnt/hgfs/share/xiao.c:31: undefined reference to `gtk_container_get_type'
/tmp/ccMsYmV8.o(.text+0xd5):/mnt/hgfs/share/xiao.c:31: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0xde):/mnt/hgfs/share/xiao.c:31: undefined reference to `gtk_container_set_border_width'
/tmp/ccMsYmV8.o(.text+0xed):/mnt/hgfs/share/xiao.c:34: undefined reference to `gtk_hbox_new'
/tmp/ccMsYmV8.o(.text+0x104):/mnt/hgfs/share/xiao.c:37: undefined reference to `gtk_container_get_type'
/tmp/ccMsYmV8.o(.text+0x110):/mnt/hgfs/share/xiao.c:37: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0x119):/mnt/hgfs/share/xiao.c:37: undefined reference to `gtk_container_add'
/tmp/ccMsYmV8.o(.text+0x129):/mnt/hgfs/share/xiao.c:39: undefined reference to `gtk_button_new_with_label'
/tmp/ccMsYmV8.o(.text+0x151):/mnt/hgfs/share/xiao.c:43: undefined reference to `gtk_object_get_type'
/tmp/ccMsYmV8.o(.text+0x15d):/mnt/hgfs/share/xiao.c:43: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0x166):/mnt/hgfs/share/xiao.c:43: undefined reference to `gtk_signal_connect_full'
/tmp/ccMsYmV8.o(.text+0x180):/mnt/hgfs/share/xiao.c:46: undefined reference to `gtk_box_get_type'
/tmp/ccMsYmV8.o(.text+0x18c):/mnt/hgfs/share/xiao.c:46: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0x195):/mnt/hgfs/share/xiao.c:46: undefined reference to `gtk_box_pack_start'
/tmp/ccMsYmV8.o(.text+0x1a3):/mnt/hgfs/share/xiao.c:49: undefined reference to `gtk_widget_show'
/tmp/ccMsYmV8.o(.text+0x1b3):/mnt/hgfs/share/xiao.c:51: undefined reference to `gtk_button_new_with_label'
/tmp/ccMsYmV8.o(.text+0x1db):/mnt/hgfs/share/xiao.c:55: undefined reference to `gtk_object_get_type'
/tmp/ccMsYmV8.o(.text+0x1e7):/mnt/hgfs/share/xiao.c:55: undefined reference to `g_type_check_instance_cast'
/tmp/ccMsYmV8.o(.text+0x1f0):/mnt/hgfs/share/xiao.c:55: undefined reference to `gtk_signal_connect_full'

作者: xiaxuiau@gmail.   发布时间: 2011-09-28

`pkg-config --libs --cflags gtk+-2.0`
加上--libs试试

作者: hml1006   发布时间: 2011-09-29

什么什么

作者: 小举   发布时间: 2011-10-02

热门下载

更多