Link errors building gdk-pixbuf under CygWin



Hi,

I'm trying to build the WIN32 version of GTK 2.10.9 (actually just the GDK
library) in Windows using CygWin (the latest) and after many hurdles I've
got to the point that gdk-pixbuf is compiling, but then failing to link with
the errors listed below - undefined references to __imp__libintl_dgettext
and __imp__libintl_ngettext.

Searching on the web this seems to be a common problem with libintl under
WIN32, so has anyone succeeded in building recent versions of GTK under
Win32 with CygWin, and if so how did you get round this?

Ian


Here are the errors that I get linking gdk-pixbuf:

gcc -march=pentium -shared .libs/libgdk_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/target/lib -L/usr/lib -Lc:/GTK/lib -lgmodule-2.0
-lgobject-2.0 -lglib-2.0 /usr/lib/libiconv.dll.a -ltiff -ljpeg -lpng12
/usr/lib/libintl.dll.a  -march=pentium -Wl,gdk_pixbuf-win32-res.o -o
.libs/libgdk_pixbuf-2.0-0.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libgdk_pixbuf-2.0.dll.a

.libs/gdk-pixbuf.o:gdk-pixbuf.c:(.text+0x238): undefined reference to
`__imp___libintl_dgettext'
.libs/gdk-pixbuf.o:gdk-pixbuf.c:(.text+0x24d): undefined reference to
`__imp___libintl_dgettext'
.libs/gdk-pixbuf.o:gdk-pixbuf.c:(.text+0x293): undefined reference to
`__imp___libintl_dgettext'
.libs/gdk-pixbuf.o:gdk-pixbuf.c:(.text+0x2a8): undefined reference to
`__imp___libintl_dgettext'
.libs/gdk-pixbuf.o:gdk-pixbuf.c:(.text+0x2e8): undefined reference to
`__imp___libintl_dgettext'
.libs/gdk-pixbuf.o:gdk-pixbuf.c:(.text+0x2fd): more undefined references to
`__imp___libintl_dgettext' follow
.libs/gdk-pixdata.o:gdk-pixdata.c:(.text+0x1173): undefined reference to
`__imp___libintl_ngettext'
.libs/gdk-pixdata.o:gdk-pixdata.c:(.text+0x1328): undefined reference to
`__imp___libintl_dgettext'
Creating library file: .libs/libgdk_pixbuf-2.0.dll.a
collect2: ld returned 1 exit status
make[2]: *** [libgdk_pixbuf-2.0.la] Error 1
make[2]: Leaving directory `/cygdrive/c/Download/GTK/gtk+-2.10.9/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/Download/GTK/gtk+-2.10.9/gdk-pixbuf'
make: *** [all] Error 2
[gdk-pixbuf]:






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