Static linking doesn't work



Hi,

compiling my GTK-application worked fine until I added the -static flag
to gcc. Now, I get many error messages that look like this:
    /usr/lib/libgtkmm.a(accellabel.o): In function
`Gtk::AccelLabel::isA(Gtk::Object *)':
accellabel.o(.text+0x1a8): undefined reference to
`gtk_accel_label_get_type'

Here are the libraries that I include:
-lgtk -lgdk -lgtkmm -lgdkmm -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
-lsigc -lpthread -lgthread -lgtkextramm -lgtkextra

What am I doing wrong?

TIA,

Felix




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