Re: Issue with linking.




if win is your GtkWindow, use:

GTK_WIDGET(win)  or cast it like  (GtkWidget *)win



Le Mardi 10 juin 2014 1h26, Bill Brown <wbrown338 comcast net> a écrit :


Hello Gtk users / devs:

I've got a program that compiles against gtk3 but fails to link.  The error I get is. 

[ERROR] /usr/bin/ld: /home/bill//container.o: undefined reference to symbol 'gtk_window_get_default_widget'
[ERROR] /usr/lib/libgtk-3.so.0: error adding symbols: DSO missing from command line

I try to use gtk_window_get_default_widget in the source code to get a GtkWidget object from a GtkWindow object.  Is there a version of the gtk library that I should use so that when linking the symbol will be recognized? Should I change my source code to get the widget from the window in another way?  

I'm using g++ (GCC) 4.9.0 20140521 (prerelease)
on an amd64 Linux Arch. 

Thanks for the info.
Bill.

_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]