3_3 branch link problem with mingw

Mickael Marchand mikmak at freenux.org
Sat Nov 6 19:38:39 CET 2004


Hi,

I am trying to compile Qt 3.3-win32 from cvs using mingw (tried borland 
and cygwin too ;) but it did not work.

Link fails with this error :

g++ -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import 
-Wl,-enable-runtime-pseudo
-reloc -mthreads -Wl,-s -Wl,-subsystem,windows -shared 
-Wl,--export-all-symbols
-Wl,--out-implib,d:\cygwin\home\Mikmak\qt-3\lib\libqt-mt.a -o 
d:\cygwin\home\Mik
mak\qt-3\lib\qt-mt333.dll object_ld_script objmoc_ld_script 
-L"d:\cygwin\home\Mi
kmak\qt-3\lib" -lopengl32 -lglu32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 
-ladvap
i32 -lshell32 -lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool
Creating library file: d:\cygwin\home\Mikmak\qt-3\lib\libqt-mt.a
./tmp\obj\release-shared-mt\qfontengine_win.o(.text+0xb51):qfontengine_win.cpp:
undefined reference to `GetGlyphIndicesW at 20'
./tmp\obj\release-shared-mt\qfontengine_win.o(.text+0xc7a):qfontengine_win.cpp:
undefined reference to `GetGlyphIndicesW at 20'
mingw32-make[2]: *** [d:\cygwin\home\Mikmak\qt-3\lib\qt-mt333.dll] Error 1
mingw32-make[2]: Leaving directory `D:/cygwin/home/Mikmak/qt-3/src'
mingw32-make[1]: *** [sub-src] Error 2
mingw32-make[1]: Leaving directory `D:/cygwin/home/Mikmak/qt-3'
mingw32-make: *** [init] Error 2

I don't think I've done something wrong, but maybe ...
any ideas on how to fix it ?
(it's on windows XP sp2, GetGlyphIndicesW/A are defined in gdi32 as it 
is expected so I don't understand why it fails ...)

Cheers,
Mik

Please CC me in answers.


More information about the kde-cygwin mailing list