PDA

View Full Version : use static lib in qt application using qt creator



Rajesh.Rathod
14th September 2016, 06:46
Dear All,
I have created simple static win32 lib using visual studio 2008 and I would like to add it in my qt project using Qt creator.
I have already added it using AddLibrary option but while calling lib function it gives me compilation error...
"undefined reference function"

I already show there is some compatibility issue.
http://www.qtcentre.org/threads/26016-Linking-to-a-windows-DLL-from-Qt-Creator-on-Windows

how to fix this. I am using qt 5.3.

If anyone has any idea or some link, please advice.

Thanks,

wysota
15th September 2016, 07:51
Add a directive (LIBS+=...) to link the library in your project file.