Problem building GTK for WIN32 under Cygwin



Hi,

I'm trying to make a WIN32 build of GTK 2.8.12 using gcc under Cygwin.
Configure works fine, but when I run make I get the following link errors:

gcc -shared .libs/cyggdk_pixbuf-2.0-0.dll.def  .libs/gdk-pixbuf.o
.libs/gdk-pixbuf-animation.o .libs/gdk-pixbuf-data.o .libs/gdk-pixbuf-io.o
.libs/gdk-pixbuf-loader.o .libs/gdk-pixbuf-scale.o
.libs/gdk-pixbuf-simple-anim.o .libs/gdk-pixbuf-util.o .libs/gdk-pixdata.o
.libs/gdk-pixbuf-enum-types.o -Wl,--whole-archive pixops/.libs/libpixops.a
-Wl,--no-whole-archive  -L/usr/lib -Ld:/DEVELO~1/GTK/lib
/usr/lib/libgmodule-2.0.dll.a /usr/lib/libgobject-2.0.dll.a
/usr/lib/libglib-2.0.dll.a /usr/lib/libiconv.dll.a /usr/lib/libintl.dll.a
-o .libs/cyggdk_pixbuf-2.0-0.dll -Wl,--image-base=0x10000000
-Wl,--out-implib,.libs/libgdk_pixbuf-2.0.dll.a
Creating library file: .libs/libgdk_pixbuf-2.0.dll.a
.libs/gdk-pixbuf.o: In function `gdk_pixbuf_class_init':
/cygdrive/d/Development/GTK-2.8/gtk+-2.8.12/gdk-pixbuf/gdk-pixbuf.c:107:
undefined reference to `__imp___libintl_dgettext'
/cygdrive/d/Development/GTK-2.8/gtk+-2.8.12/gdk-pixbuf/gdk-pixbuf.c:107:
undefined reference to `__imp___libintl_dgettext'


I have /usr/lib/libintl.dll.a as part of the Cygwin installation, and
running nm on that shows:

[gtk+-2.8.12]: nm /usr/lib/libintl.dll.a | grep libintl_dgettext 00000000 I
__imp__libintl_dgettext 00000000 T _libintl_dgettext
[gtk+-2.8.12]:

And I notice that there is one less underscore in __imp__libintl_dgettext
compared with the __imp___libintl_dgettext that the linker is looking for.

Is that significant, and anyone got any idea how to fix it?

Ian







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