[Qt-interest] Linking libaries with win32 mingw

Matthias Pospiech matthias.pospiech at gmx.de
Sun May 24 23:20:16 CEST 2009


I am usually using win32 with msvc (Visual Studio 2005) and have not 
much experience with .pro files.

Now I started to create an .pro file which shall include the same 
functionality as the vcproj file.
However the libaries can not be linked:

.pro file:

COMPILER = mingw
win32 {

  debug{

    LIBS += -Llib/wwwidgets/$${COMPILER}/debug -lwwwidgets4d.lib

  }

}




but the compiler complains: (compiled with qtcreator)

g++ -enable-stdcall-fixup -Wl,-enable-auto-import 
-Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -mthreads -Wl -o 
bin\mingw\debug\QLaserDynamicd.exe object_script.QLaserDynamicd.Debug 
-L"c:\Programme\Qt\SDK\2009.02\qt\lib" -Llib/wwwidgets/mingw/debug 
-lwwwidgets4d.lib -Llib/qwt/mingw/debug -lqwtd5.lib -lQtGuid4 -lQtCored4

mingw32-make.exe[1]: Leaving directory 
`H:/Dev/CPP/SVN/Laserdynamics/QLaserDynamics'

C:\Programme\Qt\SDK\2009.02\mingw\bin\mingw32-make.exe: Leaving 
directory `H:/Dev/CPP/SVN/Laserdynamics/QLaserDynamics'

C:\Programme\Qt\SDK\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -lwwwidgets4d.lib

collect2: ld returned 1 exit status




the libary is located at
lib/wwwidgets/mingw/debug

relativly to the project directory which contains the .pro file.

any ideas ?
Matthias



More information about the Qt-interest-old mailing list