Re: [gtk-list] Re: static link w/gtk
- From: Jeff Garzik <jgarzik pobox com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: static link w/gtk
- Date: Tue, 24 Nov 1998 15:30:10 -0500 (EST)
Did you see my e-mail? You need only to do
./configure --disable-shared
make clean
make
Jeff
Matt Rosencrantz wrote:
>
> >
> >gcc -static -o foo foo.c -lglib -lgmodule -lgdk -lgtk -letc etc.
> >
> >Provided that there is any static (*.a) g*libs, of course.
> >
> >'man gcc' :)
> >
> >Tom
> >
> >--
> >To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> >
> >
> I actually did read the man page and so I tried as you suggested:
> gcc -static -lgtk -lgdk -lglib -lX11 -lXext -lm -o twiz twiz.o interface.o
> io.o
>
> (*.o had already been built with gcc -c ...)
>
> unfortunately I just get a big list of undefined symbols(see below). I do
> have the *.a files, they are in the same place as the .so files, and my
> program builds find w/o the static option. the *.a files were built when I
> installed gtk+... do I need to do something else?
>
> thanks for all of your help,
> -matt
>
> Undefined first referenced
> symbol in file
> gtk_entry_get_type twiz.o
> gtk_widget_unref interface.o
> gtk_notebook_insert_page interface.o
> gtk_widget_realize interface.o
> gtk_entry_get_text twiz.o
> gtk_fixed_new twiz.o
> gtk_window_get_type twiz.o
> gtk_init twiz.o
> gtk_label_get_type twiz.o
> gtk_window_set_title twiz.o
> gtk_widget_show twiz.o
> gtk_notebook_get_type interface.o
> gtk_clist_column_titles_show interface.o
> gtk_clist_select_row interface.o
> gtk_object_check_cast twiz.o
> gtk_clist_set_column_widget interface.o
> gtk_window_new twiz.o
> gtk_window_set_policy twiz.o
> gtk_text_insert interface.o
> gtk_fixed_put twiz.o
> gtk_container_remove interface.o
> gtk_signal_connect twiz.o
> gtk_button_new_with_label twiz.o
> gtk_clist_new interface.o
> gtk_widget_get_type twiz.o
> gtk_object_set_data twiz.o
> gtk_label_new interface.o
> gtk_label_set twiz.o
> gtk_container_add twiz.o
> gtk_main twiz.o
> gtk_clist_set_column_width interface.o
> g_warning interface.o
> gtk_text_new interface.o
> gtk_object_get_data twiz.o
> gtk_widget_ref interface.o
> gtk_object_remove_data interface.o
> gtk_text_get_type interface.o
> gtk_container_get_type twiz.o
> gtk_clist_set_text twiz.o
> gtk_entry_set_text twiz.o
> gtk_clist_get_type twiz.o
> gtk_widget_set_usize twiz.o
> gtk_widget_get_toplevel interface.o
> gtk_clist_append interface.o
> gtk_entry_new interface.o
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]