From: Thomas S. <tks...@gm...> - 2010-03-07 22:29:17
|
Maybe someone here can solve my problem, which may be elementary. I have a native Windows dll, built by me with msvc, that I wish to link to a Qt app built on MinGW with Qt 4.6 Open Source. Everything looks OK, but the link fails. The Makefile for this build was generated by qmake. The output for the linking step follows: g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo- reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/gPpDemo.exe object_script.gPpDemo.Debug -L'c:/Qt/2010.02.1/qt/lib' -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmaind -LC:/videoDev/gPp/gPpDemo -lDVPump -lQtOpenGLd4 -lQtGuid4 -lQtCored4 mingw32-make[1]: Leaving directory `C:/videoDev/gPp/gPpDemo' mingw32-make: Leaving directory `C:/videoDev/gPp/gPpDemo' ./debug/dvpump.o: In function `Z9getDVPumpv': C:\videoDev\gPp\gPpDemo/dvpump.cpp:21: undefined reference to `DVP_RegisterSink' collect2: ld returned 1 exit status mingw32-make[1]: *** [debug/gPpDemo.exe] Error 1 mingw32-make: *** [debug] Error 2 My import library name (DVPump) is indeed in the command line, and ld must have found it else there would be a 'library not found' error. Moreover nm reports that _DVP_RegisterSink is indeed an entry point in DVPump.lib and an external reference in dvpump.o. So I am stuck. Thanks, Tom |