[Qt-interest] Linking libaries with win32 mingw
Girish Ramakrishnan
girish at forwardbias.in
Mon May 25 05:26:38 CEST 2009
Matthias Pospiech wrote:
> 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
>
Is wwwidgets4d compiles with mingw? Usually, mingw compiled libs have a
.a extension. You cannot use msvc compiled libs to link with mingw.
Girish
More information about the Qt-interest-old
mailing list