[Qt-interest] libary file not found
Farid Derradji
farid.derradji at ITWM.fraunhofer.de
Wed Feb 11 21:57:12 CET 2009
> If I compile with this code (in .pro file)
> win32{
>
> debug{
>
> LIBS += lib/qwt/mingw/debug/libqwtd5.a
>
> }
>
> }
Hello Matthias,
the naming convention for static libraries in Windows is different.
In Linux : 'lib' + name + '.a'
In Windows: name + '.lib'
Hence, in your case the right statement would be:
win32{
debug{
LIBS += lib/qwt/mingw/debug/qwtd5.lib
}
}
By the way, wouldn't it be better to write
debug{
LIBS += -Llib/qwt/mingw/debug -lqwtd5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}
?
If you have a look at the official documentation, you will find out that
QMAKE supports the latter notation on every platform.
Regards
Farid
More information about the Qt-interest-old
mailing list