Issue with linking.



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.


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