- Code: Select all
./gtkvu.o: In function `gtk_vu_class_init':
gtkvu.c:(.text+0x3e): undefined reference to `gtk_widget_get_type'
gtkvu.c:(.text+0x48): undefined reference to `gtk_type_class'
gtkvu.c:(.text+0x54): undefined reference to `g_type_check_class_cast'
./gtkvu.o: In function `gtk_vu_get_type':
gtkvu.c:(.text+0xe8): undefined reference to `gtk_widget_get_type'
gtkvu.c:(.text+0xf8): undefined reference to `gtk_type_unique'
./gtkvu.o: In function `gtk_vu_size_allocate':
In case anyone else has had this problem I am enclosing a patch showing the change I made to the Makefile to resolve the problem and allow a clean compile.
- Code: Select all
--- Makefile 2011-10-27 23:30:00.000000000 +0100
+++ Makefile.bak 2011-10-27 23:35:56.000000000 +0100
@@ -33,7 +33,7 @@
ossxmix: $(BINDIR)/ossxmix
$(BINDIR)/ossxmix: $(OBJECTS)
- $(CC) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) -s -o $(BINDIR)/ossxmix $(OBJECTS)
+ $(CC) -o $(BINDIR)/ossxmix $(OBJECTS) $(CFLAGS) $(LIBRARIES) $(LDFLAGS) -s
$(TMPDIR)/gtkvu.o: gtkvu.c
