On 11 Aug 2003 at 1:57, Tor Lillqvist wrote: > Michael Schumacher writes: > > The result of make after creating the libintl.a & libiconv.a files: > > > Creating library file: .libs/libgimpui-1.3.dll.a > > .libs/gimpui.o(.text+0x159):gimpui.c: undefined reference to > `gimp_min_colors' > .libs/gimpui.o(.text+0x170):gimpui.c: undefined reference > to `gimp_install_cmap' > .libs/gimpui.o(.text+0x1a4):gimpui.c: undefined > reference to `gimp_gamma' > ... > > > and many more undefined references to 'gimp_...'. > > Well, the above messages doesn't seem to have much to do with libintl > and libiconv import libraries. It seems that you aren't for some > reason linking with libgimp's import library. The Makefile.am does > have $(libgimp) in libgimpui_1_3_la_LIBADD, so it should. What does > your make output from the libtool --mode=link phase look like? /bin/sh ../libtool --mode=link gcc -Ic:/usr/src/include -Wall -mms-bitfields - Lc:/usr/src/lib -o libgimpui-1.3.la -rpath /c/temp/gimp1.3/lib -version-info 18:0:0 -no-undefined -export-symbols gimpui.def gimpui.lo gimpmenu.lo gimpmiscui.lo gimpbrushmenu.lo gimpfontmenu.lo gimpgradientmenu.lo gimppatternmenu.lo gimpexport.lo ./libgimp-1.3.la ../libgimpwidgets/libgimpwidgets-1.3.la ../libgimpcolor/libgimpcolor-1.3.la ../libgimpbase/libgimpbase-1.3.la -Lc:/usr/src/lib -lgtk-win32-2.0 -lgdk-win32- 2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject- 2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv gcc -shared .libs/gimpui.o .libs/gimpmenu.o .libs/gimpmiscui.o .libs/gimpbrushmenu.o .libs/gimpfontmenu.o .libs/gimpgradientmenu.o .libs/gimppatternmenu.o .libs/gimpexport.o - L/c/usr/compile/gimp/libgimpbase/.libs -L/c/usr/compile/gimp/libgimpcolor/.libs -Lc:/usr/src/lib ./.libs/libgimp-1.3.dll.a ../libgimpwidgets/.libs/libgimpwidgets-1.3.dll.a ../libgimpcolor/.libs/libgimpcolor-1.3.dll.a ../libgimpbase/.libs/libgimpbase- 1.3.dll.a -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 - lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 - lintl -liconv -mms-bitfields -o .libs/libgimpui-1.3-18.dll -Wl,-retain-symbols- file -Wl,gimpui.def -Wl,--out-implib,.libs/libgimpui-1.3.dll.a Creating library file: .libs/libgimpui-1.3.dll.a .libs/gimpui.o(.text+0x159):gimpui.c: undefined reference to `gimp_min_colors' ... I found a workaround - instead of libgimp-1.3.dll.a and libgimpui-1.3.dll.a, use libgimp-1.3.a and libgimpui-1.3.a. I modified the corresponsing .la files accordingly. This makes installing a bit painful - I had to disable the install target in the libgimp Makefile and copy the two libs manually - but now I've got a working GIMP 1.3 on Win32. > > You mentioned that libintl.h has to be modified - is this just a #define or > > something else? > > It's just a change at one line, line 102, which should be: > > # if __GNUC__ >= 2 && !defined __APPLE_CC__ && !defined __MINGW32__ && (defined > # __STDC__ || defined __cplusplus) > > The && !defined __MINGW32__ had to be added, otherwise it tries to use > some odd __adm__ stuff that doesn't work correctly when import > libraries are involved. Thanks, this works. Michael