I am working on Windows and currently have a typical hello world project. I built a static version of the QT Library. I included the header files and libs and when creating a QString
I get a couple of errors..
unresolved external symbol "public: static void __cdecl QArrayData::deallocate(struct QArrayData*, unsigned __int64,unsigned __int64)" (?deallocate@QArrayData@@SAXPEAU1@K1@Z) referenced in function "public:static void __cdecl QTypedArrayData<unsigned short>::deallocate(struct QArrayData *)" (?deallocate@?$QTypedArrayData@G@@SAXPEAUQArrayData@@@Z)
unresolved external symbol "public: static struct QArrayData const * const QArrayData::shared_null" (?shared_null@QArrayData@@2QBU1@B)
2 unresolved externals
I ran dumpbin /SYMBOLS Qt5Core.lib
and I see what I believe is the function it is referencing. I have also found it in the header file that is also included in my include directory. I am not sure what else I could do to fix this.
#include <iostream>
#include "QtCore/qstring.h"
QString tmp;
int main() {
std::cout << "Hello World!";
}
What is an undefined reference/unresolved external symbol error and how do I fix it? does not answer my question. This isn't a typical unresolved symbol question it is related to specific QT libraries.