undefined reference to library function in Qtcreator
-
I develop a Qt project of Qt creator 4.4.12 in windows10. And I use a library developed by Visual Studio 2013.
When I build my project, I have an error like "undefined reference to library function".
But I don't know how to solve this problem.
I definitely set a include path and a library path in my .pro file..profile
LIBS += ../LIB/XXX_LIB.lib INCLUDEPATH += $$PWD/LIB
The library is a static link library. When I built my project using Qt 5.15.2 MinGW 64-bit and Qt 5.15.2 MSVC 64-bit,
I had errors. Do you have any solutions ?? -
I develop a Qt project of Qt creator 4.4.12 in windows10. And I use a library developed by Visual Studio 2013.
When I build my project, I have an error like "undefined reference to library function".
But I don't know how to solve this problem.
I definitely set a include path and a library path in my .pro file..profile
LIBS += ../LIB/XXX_LIB.lib INCLUDEPATH += $$PWD/LIB
The library is a static link library. When I built my project using Qt 5.15.2 MinGW 64-bit and Qt 5.15.2 MSVC 64-bit,
I had errors. Do you have any solutions ??@Narahara said in undefined reference to library function in Qtcreator:
And I use a library developed by Visual Studio 201
Is this library a C++ library?
If so then you have to use compiler from Visual Studio 2013 to build your app, because you can't mix binaries compiled with different compilers.