My project isn't linking
Solved
Qt Creator and other tools
-
FAILED: HackoranDLL/hackoran.dll HackoranDLL/hackoran.lib cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_dll --intdir=HackoranDLL\CMakeFiles\hackoran.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\link.exe /nologo HackoranDLL\CMakeFiles\hackoran.dir\hackoran_instance.cpp.obj HackoranDLL\CMakeFiles\hackoran.dir\main.cpp.obj /out:HackoranDLL\hackoran.dll /implib:HackoranDLL\hackoran.lib /pdb:HackoranDLL\hackoran.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /SUBSYSTEM:WINDOWS GUI\GUI.lib "C:\Program Files\Java\jdk1.8.0_281\lib\jvm.lib" C:\Qt\6.0.1\mingw81_64\lib\libQt6Quick.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Quick.a C:\Qt\6.0.1\mingw81_64\lib\libQt6QmlModels.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Qml.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Network.a C:\Qt\6.0.1\mingw81_64\lib\libQt6OpenGL.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Gui.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Core.a C:\Qt\6.0.1\mingw81_64\lib\libQt6QmlModels.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Qml.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Network.a ws2_32.lib shell32.lib C:\Qt\6.0.1\mingw81_64\lib\libQt6OpenGL.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Gui.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Core.a mpr.lib userenv.lib d3d11.lib dxgi.lib dxguid.lib user32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK Pass 1: command "C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\link.exe /nologo HackoranDLL\CMakeFiles\hackoran.dir\hackoran_instance.cpp.obj HackoranDLL\CMakeFiles\hackoran.dir\main.cpp.obj /out:HackoranDLL\hackoran.dll /implib:HackoranDLL\hackoran.lib /pdb:HackoranDLL\hackoran.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /SUBSYSTEM:WINDOWS GUI\GUI.lib C:\Program Files\Java\jdk1.8.0_281\lib\jvm.lib C:\Qt\6.0.1\mingw81_64\lib\libQt6Quick.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Quick.a C:\Qt\6.0.1\mingw81_64\lib\libQt6QmlModels.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Qml.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Network.a C:\Qt\6.0.1\mingw81_64\lib\libQt6OpenGL.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Gui.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Core.a C:\Qt\6.0.1\mingw81_64\lib\libQt6QmlModels.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Qml.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Network.a ws2_32.lib shell32.lib C:\Qt\6.0.1\mingw81_64\lib\libQt6OpenGL.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Gui.a C:\Qt\6.0.1\mingw81_64\lib\libQt6Core.a mpr.lib userenv.lib d3d11.lib dxgi.lib dxguid.lib user32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:HackoranDLL\CMakeFiles\hackoran.dir/intermediate.manifest HackoranDLL\CMakeFiles\hackoran.dir/manifest.res" failed (exit code 1120) with the following output: GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) void __cdecl qt_assert(char const *,char const *,int)" (__imp_?qt_assert@@YAXPEBD0H@Z), referenciado na fun��o "public: void __cdecl QtPrivate::QPodArrayOps<char16_t>::destroyAll(void)" (?destroyAll@?$QPodArrayOps@_S@QtPrivate@@QEAAXXZ) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: static void __cdecl QArrayData::deallocate(struct QArrayData *,__int64,__int64)" (__imp_?deallocate@QArrayData@@SAXPEAU1@_J1@Z), referenciado na fun��o "public: static void __cdecl QTypedArrayData<char16_t>::deallocate(struct QArrayData *)" (?deallocate@?$QTypedArrayData@_S@@SAXPEAUQArrayData@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QString::~QString(void)" (__imp_??1QString@@QEAA@XZ), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QString::QString(struct QArrayDataPointer<char16_t> &&)" (__imp_??0QString@@QEAA@$$QEAU?$QArrayDataPointer@_S@@@Z), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QMetaObject::Connection::~Connection(void)" (__imp_??1Connection@QMetaObject@@QEAA@XZ), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) private: static class QMetaObject::Connection __cdecl QObject::connectImpl(class QObject const *,void * *,class QObject const *,void * *,class QtPrivate::QSlotObjectBase *,enum Qt::ConnectionType,int const *,struct QMetaObject const *)" (__imp_?connectImpl@QObject@@CA?AVConnection@QMetaObject@@PEBV1@PEAPEAX01PEAVQSlotObjectBase@QtPrivate@@W4ConnectionType@Qt@@PEBHPEBU3@@Z), referenciado na fun��o "public: static class QMetaObject::Connection __cdecl QObject::connect<void (__cdecl QQmlApplicationEngine::*)(class QObject *,class QUrl const &),class <lambda_a82acdcee0cda40e0015bcc543342356> >(class QQmlApplicationEngine const *,void (__cdecl QQmlApplicationEngine::*)(class QObject *,class QUrl const &),class QObject const *,class <lambda_a82acdcee0cda40e0015bcc543342356>,enum Qt::ConnectionType)" (??$connect@P8QQmlApplicationEngine@@EAAXPEAVQObject@@AEBVQUrl@@@ZV<lambda_a82acdcee0cda40e0015bcc543342356>@@@QObject@@SA?AVConnection@QMetaObject@@PEBVQQmlApplicationEngine@@P83@EAAXPEAV0@AEBVQUrl@@@ZPEBV0@V<lambda_a82acdcee0cda40e0015bcc543342356>@@W4ConnectionType@Qt@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: static void __cdecl QCoreApplication::exit(int)" (__imp_?exit@QCoreApplication@@SAXH@Z), referenciado na fun��o "public: void __cdecl <lambda_a82acdcee0cda40e0015bcc543342356>::operator()(class QObject *,class QUrl const &)const " (??R<lambda_a82acdcee0cda40e0015bcc543342356>@@QEBAXPEAVQObject@@AEBVQUrl@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QGuiApplication::QGuiApplication(int &,char * *,int)" (__imp_??0QGuiApplication@@QEAA@AEAHPEAPEADH@Z), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: virtual __cdecl QGuiApplication::~QGuiApplication(void)" (__imp_??1QGuiApplication@@UEAA@XZ), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: static int __cdecl QGuiApplication::exec(void)" (__imp_?exec@QGuiApplication@@SAHXZ), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QUrl::QUrl(class QUrl const &)" (__imp_??0QUrl@@QEAA@AEBV0@@Z), referenciado na fun��o "public: __cdecl <lambda_a82acdcee0cda40e0015bcc543342356>::<lambda_a82acdcee0cda40e0015bcc543342356>(class <lambda_a82acdcee0cda40e0015bcc543342356> &&)" (??0<lambda_a82acdcee0cda40e0015bcc543342356>@@QEAA@$$QEAV0@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QUrl::QUrl(class QString const &,enum QUrl::ParsingMode)" (__imp_??0QUrl@@QEAA@AEBVQString@@W4ParsingMode@0@@Z), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QUrl::~QUrl(void)" (__imp_??1QUrl@@QEAA@XZ), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: bool __cdecl QUrl::operator==(class QUrl const &)const " (__imp_??8QUrl@@QEBA_NAEBV0@@Z), referenciado na fun��o "public: void __cdecl <lambda_a82acdcee0cda40e0015bcc543342356>::operator()(class QObject *,class QUrl const &)const " (??R<lambda_a82acdcee0cda40e0015bcc543342356>@@QEBAXPEAVQObject@@AEBVQUrl@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)" (__imp_??0QQmlDebuggingEnabler@@QEAA@_N@Z), referenciado na fun��o "void __cdecl `dynamic initializer for 'qQmlEnableDebuggingHelper''(void)" (??__EqQmlEnableDebuggingHelper@@YAXXZ) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: __cdecl QQmlApplicationEngine::QQmlApplicationEngine(class QObject *)" (__imp_??0QQmlApplicationEngine@@QEAA@PEAVQObject@@@Z), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: virtual __cdecl QQmlApplicationEngine::~QQmlApplicationEngine(void)" (__imp_??1QQmlApplicationEngine@@UEAA@XZ), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: void __cdecl QQmlApplicationEngine::load(class QUrl const &)" (__imp_?load@QQmlApplicationEngine@@QEAAXAEBVQUrl@@@Z), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: void __cdecl QQmlApplicationEngine::objectCreated(class QObject *,class QUrl const &)" (__imp_?objectCreated@QQmlApplicationEngine@@QEAAXPEAVQObject@@AEBVQUrl@@@Z), referenciado na fun��o "void __cdecl gui::openWindow(class hackoran::instance *)" (?openWindow@gui@@YAXPEAVinstance@hackoran@@@Z) GUI.lib(main.cpp.obj) : error LNK2019: s�mbolo externo n�o resolvido, "__declspec(dllimport) public: static struct QMetaObject const QQmlApplicationEngine::staticMetaObject" (__imp_?staticMetaObject@QQmlApplicationEngine@@2UQMetaObject@@B), referenciado na fun��o "public: static class QMetaObject::Connection __cdecl QObject::connect<void (__cdecl QQmlApplicationEngine::*)(class QObject *,class QUrl const &),class <lambda_a82acdcee0cda40e0015bcc543342356> >(class QQmlApplicationEngine const *,void (__cdecl QQmlApplicationEngine::*)(class QObject *,class QUrl const &),class QObject const *,class <lambda_a82acdcee0cda40e0015bcc543342356>,enum Qt::ConnectionType)" (??$connect@P8QQmlApplicationEngine@@EAAXPEAVQObject@@AEBVQUrl@@@ZV<lambda_a82acdcee0cda40e0015bcc543342356>@@@QObject@@SA?AVConnection@QMetaObject@@PEBVQQmlApplicationEngine@@P83@EAAXPEAV0@AEBVQUrl@@@ZPEBV0@V<lambda_a82acdcee0cda40e0015bcc543342356>@@W4ConnectionType@Qt@@@Z)
its already with the QT libraries, nothing changes
-
You installed Qt for MinGW but using then MSVC compiler. This will not work - you can't mix c++ libraries from different compilers on windows.
-
@Christian-Ehrlicher but i need MSVC, im working on a injectable hack for minecraft so i need MSVC to inject the DLL and make it work, the installer just installed this version, idk if exists an version of qt for MSVC
-
Hi,
There sure is. Just select it in the maintenance tool.
-
so I need to install it again?
-
No, just use the Maintenance Tool to add the MSVC build.
-
Sorry im a beginner but how do i do this? ;-;
-
Go to the Qt folder, locate and double click on the maintenance tool executable.
-
This post is deleted!
-
This post is deleted!