我下面一書(GTK +的基礎),當我編譯這些文件:創建自定義Widget Gtk2/C?
端子輸出這個(GCC ipaddresstest.c $(PKG -config --cflags --libs gtk + -2.0)):
ipaddresstest.c :(. text + 0xC9): undefined reference to "my_ip_address_new"
ipaddresstest.c :(. text + 0xD2): undefined reference to "my_ip_address_get_type"
ipaddresstest.c :(. text + 0xF6): undefined reference to "my_ip_address_set_address"
/tmp/cclTaXSL.o: in "ip_address_changed" function:
ipaddresstest.c :(. text + 0x183): undefined reference to "my_ip_address_get_address"
collect2: error: ld returned 1 exit status
我沒有發現這件事。 錯誤在哪裏?
PS:你能告訴我關於gtk3這個參數的指導嗎?
gcc ipaddresstest.c $(pkg-config --cflags --libs gtk + -2.0) – Pegasum
是的,我沒有提及myipaddress.c ...謝謝.. – Pegasum
對不起,我如何在gtk3中封鎖處理程序?在gtk2中,我使用了gtk_signal_handler_block_by_data(G_OBJECT(obj),widget); – Pegasum