RE: [gtk-list] 'gnome-config --libs gnome' fail
- From: "Arjan J. Molenaar" <arjan xirion nl>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: RE: [gtk-list] 'gnome-config --libs gnome' fail
- Date: Wed, 27 Oct 1999 12:15:44 +0200
what does
gnome-config --libs gnome
print on your terminal? and just
gnome-config
?
Arjan
> -----Original Message-----
> From: Javi [mailto:javi@hardlogic.es]
> Sent: Wednesday, October 27, 1999 11:55 AM
> To: gtk-list@redhat.com
> Subject: [gtk-list] 'gnome-config --libs gnome' fail
>
>
> With my new Makefile:
>
> ----------------------------------------
> # Options
> CFLAGS = -Wall -O2
> GTKCFLAGS = `gnome-config --cflags gnome`
> GTKLIBS = `gnome-config --libs gnome`
> # Files
> SCR = hello.c menu.c app.c
> OBJ = hello.o menu.o app.o
> # Final executable
> PROGRAMA = gnome-hello
> # Rules
> all: $(PROGRAM)
> $(PROGRAM): $(OBJ)
> $(CC) $(CFLAGS) -o $@ $(GTKLIBS) $(OBJ)
> hello.o: hello.c
> $(CC) --version
> $(CC) $(CFLAGS) $(GTKCFLAGS) -c hello.c
> menu.o: menu.c menu.h
> $(CC) $(CFLAGS) $(GTKCFLAGS) -c menu.c
> app.o: app.c app.h
> $(CC) $(CFLAGS) $(GTKCFLAGS) -c app.c
> clean:
> $(RM) $(OBJ) $(PROGRAM)
> ----------------------------------------
>
> My news outputs errors (i'm sorry, i am very newby):
>
> gcc --version
> egcs-2.91.66
> gcc -Wall -O2 `gnome-config --cflags gnome` -c hello.c
> gcc -Wall -O2 `gnome-config --cflags gnome` -c menus.c
> gcc -Wall -O2 `gnome-config --cflags gnome` -c app.c
> gcc -Wall -O2 -o hello `gnome-config --libs gnome` hello.o
> menus.o app.o
> hello.o: In function `main':
> hello.o(.text+0x28): undefined reference to
> `gnome_init_with_popt_table'
> hello.o(.text+0x9e): undefined reference to `gnome_master_client'
> hello.o(.text+0xc3): undefined reference to
> `gtk_type_check_object_cast'
> hello.o(.text+0xd4): undefined reference to `gtk_signal_connect'
> hello.o(.text+0xf7): undefined reference to
> `gtk_type_check_object_cast'
> hello.o(.text+0x104): undefined reference to `gtk_signal_connect'
> hello.o(.text+0x127): undefined reference to `gtk_widget_show_all'
> hello.o(.text+0x12c): undefined reference to `gtk_main'
> hello.o: In function `save_session':
> hello.o(.text+0x17c): undefined reference to
> `gnome_client_set_clone_command'
> hello.o(.text+0x187): undefined reference to
> `gnome_client_set_restart_command'
> hello.o: In function `session_die':
> hello.o(.text+0x19c): undefined reference to `gtk_main_quit'
> menus.o: In function `hello_install_menus_and_toolbar':
> menus.o(.text+0xe): undefined reference to `gnome_app_get_type'
> menus.o(.text+0x15): undefined reference to
> `gtk_type_check_object_cast'
> ...
>
> Thanks.
>
> --
> 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]