[Qt-interest] libary file not found

Matthias Pospiech matthias.pospiech at gmx.de
Wed Feb 11 21:35:10 CET 2009


If I compile with this code (in .pro file)
win32{

    debug{

        LIBS += lib/qwt/mingw/debug/libqwtd5.a

    }

}

then I get the failure

mingw32-make[1]: Entering directory 
`H:/Dev/CPP/SVN/repository/Cpp/Examples/QtHeide'

g++ -enable-stdcall-fixup -Wl,-enable-auto-import 
-Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o 
bin\debug\QtHeided.exe build/debug/main.o build/debug/mainwindow.o 
build/debug/dialogexample.o build/debug/moc_mainwindow.o 
build/debug/moc_dialogexample.o -L"c:\Programme\Qt\QtCreator\qt\lib" 
-lmingw32 -lqtmaind -l/qwt/mingw/debug/libqwtd5.a 
-l/qwt/mingw/release/libqwt5.a -lQtGuid4 -lQtCored4

mingw32-make[1]: Leaving directory 
`H:/Dev/CPP/SVN/repository/Cpp/Examples/QtHeide'

mingw32-make: Leaving directory 
`H:/Dev/CPP/SVN/repository/Cpp/Examples/QtHeide'

C:\Programme\Qt\QtCreator\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -l/qwt/mingw/debug/libqwtd5.a

collect2: ld returned 1 exit status


this is not surprising, since the libary is not in directory 
'/qwt/mingw/debug/libqwtd5.a'

But how do I set the LIBS variable such that the libary is found?

Matthias




More information about the Qt-interest-old mailing list