[Gtk2forpascal-devel] undefined references
Brought to you by:
mgaertner
From: Olaf L. <le...@ne...> - 2002-09-03 19:35:32
|
Hello list! When trying to compile my gtk2 app with the latest version of the units I get the following undefined reference: Compiling ./gtk+/demo/gtk_demo.pas Assembling gtk_demo Linking ./gtk+/demo/gtk_demo [...]/pas/gtk2/gdk2.o: In function `_GDK2$$_GDK_TYPE_DISPLAY': [...]/pas/gtk2/gdk2.o(.text+0xb07): undefined reference to `gdk_display_get_type' [...]/pas/gtk2/gdk2.o: In function `_GDK2$$_GDK_TYPE_SCREEN': [...]/pas/gtk2/gdk2.o(.text+0xbc7): undefined reference to `gdk_screen_get_type' In the win32 gdk-dll I found the following functions: > objdump -x /win/d/WINNT/system32/libgdk-win32-2.0-0.dll | grep gdk_screen [ 302] gdk_screen_height [ 303] gdk_screen_height_mm [ 304] gdk_screen_width [ 305] gdk_screen_width_mm [1762](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x0003f320 _gdk_screen_width [1763](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x0003f330 _gdk_screen_height [1764](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x0003f348 _gdk_screen_width_mm [1765](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x0003f3b0 _gdk_screen_height_mm > objdump -x /win/d/WINNT/system32/libgdk-win32-2.0-0.dll | grep gdk_display [5821](sec 4)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000550 _gdk_display_hdc ************************************************************************************* And on linux there is: > objdump -x /usr/lib/libgdk-x11-2.0.so | grep gdk_screen 0003b0c0 g F .text 00000035 gdk_screen_width_mm 0003b040 g F .text 00000035 gdk_screen_width 0003b100 g F .text 00000035 gdk_screen_height_mm 0003b080 g F .text 00000035 gdk_screen_height > objdump -x /usr/lib/libgdk-x11-2.0.so | grep gdk_display 00058dec g O .data 00000004 gdk_display Well, I don't know why these functions aren't in my gdk-dll/so Has anybody an idea? Ciao, Olaf |