Getting the error cannot find -lqcad
-
Hi does anybody know how to fix this error
c:/qtsdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lqcad
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\systray.exe] Error 1
mingw32-make.exe: *** [debug] Error 2
22:31:49: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project systray (target: Desktop)
When executing build step 'Make' -
"qmake - Declaring Other Libraries":http://qt-project.org/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries
"LIBS Variable":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs -
You need to set "LIBS" in your .pro file, assuming you're building on unix :
LIBS += -L/path/to/your/library/ -lqcadAs for win32 (let's link against libmysql that's installed in C:\mysql\lib":
LIBS += C:\mysql\lib\libmysql.lib