在将QtSql库的包含内容写入代码后,任何编译尝试都将返回“操作符不匹配”。删除/注释带有“ include”的行将消除错误。
发生的确切错误是:
no match for 'operator==' (operand types are 'std::thread::native_handle_type{aka ptw32_handle_t}' and 'std::thread::native_handle_type{aka ptw32_handle_t}')
no match for 'operator<' (operand types are 'std::thread::native_handle_type{aka ptw32_handle_t}' and 'std::thread::native_handle_type{aka ptw32_handle_t}')
我的项目中的文件:
Upload.pro
QT += core
QT -= gui
QT += sql
CONFIG += c++11
TARGET = Upload
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
unix|win32: LIBS += -L'C:/Program Files/PostgreSQL/9.5/lib/' -llibpq
INCLUDEPATH += 'C:/Program Files/PostgreSQL/9.5/include'
DEPENDPATH += 'C:/Program Files/PostgreSQL/9.5/include'
main.cpp
#include <QCoreApplication>
#include <QFile>
#include <QDebug>
#include <QTextStream>
#include <QtSql>
#include <QSqlQuery>
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return 0;
}
我将QT 5.12.0和QT Creator 4.8.0一起使用(将MinGW 7.3.0 64位设置为编译器)。
该程序是使用脱机安装程序安装的,因此它不是定制构建的,这就是为什么我犹豫将其视为程序本身的错误的原因。搜索类似问题也没有给我任何结果。
我以前在32位计算机上使用早期版本的QT解决了类似的与SQL相关的编程问题,所以我几乎可以肯定代码也很好。
这是编译器设置的问题吗?还是在QT的较新版本中出现一些并发症?
编辑:错误消息的一部分
编辑2:错误日志的一部分(完整的错误日志的长度为226k +个字符,超过了发布限制)
14:13:47: Running steps for project Upload...
14:13:47: Configuration unchanged, skipping qmake step.
14:13:47: Starting: "C:\Qt\Qt5.12.0\Tools\mingw730_64\bin\mingw32-make.exe" -j8
C:/Qt/Qt5.12.0/Tools/mingw730_64/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'E:/User/databasePrograms/build-Upload-Desktop_Qt_5_12_0_MinGW_64_bit-Debug'
g++ -c -fno-keep-inline-dllexport -g -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -DQT_SQL_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Upload -I. -I"C:\Program Files\PostgreSQL\9.5\include" -IC:\Qt\Qt5.12.0\5.12.0\mingw73_64\include -IC:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql -IC:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtCore -Idebug -IC:\Qt\Qt5.12.0\5.12.0\mingw73_64\mkspecs\win32-g++ -o debug\main.o ..\Upload\main.cpp
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread: In function 'bool std::operator==(std::thread::id, std::thread::id)':
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:26: error: no match for 'operator==' (operand types are 'std::thread::native_handle_type {aka ptw32_handle_t}' and 'std::thread::native_handle_type {aka ptw32_handle_t}')
return __x._M_thread == __y._M_thread;
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:270:3: note: candidate: bool std::operator==(std::thread::id, std::thread::id)
operator==(thread::id __x, thread::id __y) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:270:3: note: no known conversion for argument 1 from 'std::thread::native_handle_type {aka ptw32_handle_t}' to 'std::thread::id'
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:378:5: note: candidate: template<class _Tp> bool std::operator==(std::nullptr_t, const std::shared_ptr<_Tp>&)
operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:378:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::shared_ptr<_Tp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:373:5: note: candidate: template<class _Tp> bool std::operator==(const std::shared_ptr<_Tp>&, std::nullptr_t)
operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:373:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::shared_ptr<_Tp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:368:5: note: candidate: template<class _Tp, class _Up> bool std::operator==(const std::shared_ptr<_Tp>&, const std::shared_ptr<_Up>&)
operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:368:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::shared_ptr<_Tp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:52:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr_base.h:1420:5: note: candidate: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(std::nullptr_t, const std::__shared_ptr<_Tp, _Lp>&)
operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr_base.h:1420:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::__shared_ptr<_Tp, _Lp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:52:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr_base.h:1415:5: note: candidate: template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(const std::__shared_ptr<_Tp, _Lp>&, std::nullptr_t)
operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr_base.h:1415:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::__shared_ptr<_Tp, _Lp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr.h:52:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:81,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr_base.h:1409:5: note: candidate: template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator==(const std::__shared_ptr<_Tp1, _Lp>&, const std::__shared_ptr<_Tp2, _Lp>&)
operator==(const __shared_ptr<_Tp1, _Lp>& __a,
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/shared_ptr_base.h:1409:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::__shared_ptr<_Tp1, _Lp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:80:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/unique_ptr.h:694:5: note: candidate: template<class _Tp, class _Dp> bool std::operator==(std::nullptr_t, const std::unique_ptr<_Tp, _Dp>&)
operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/unique_ptr.h:694:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:80:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/unique_ptr.h:689:5: note: candidate: template<class _Tp, class _Dp> bool std::operator==(const std::unique_ptr<_Tp, _Dp>&, std::nullptr_t)
operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/unique_ptr.h:689:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/memory:80:0,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:39,
from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/unique_ptr.h:683:5: note: candidate: template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator==(const std::unique_ptr<_Tp, _Dp>&, const std::unique_ptr<_Up, _Ep>&)
operator==(const unique_ptr<_Tp, _Dp>& __x,
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/unique_ptr.h:683:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/random:51:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qrandom.h:45,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:165,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/random.tcc:1878:5: note: candidate: template<class _RealType1> bool std::operator==(const std::normal_distribution<_RealType>&, const std::normal_distribution<_RealType>&)
operator==(const std::normal_distribution<_RealType>& __d1,
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/random.tcc:1878:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::normal_distribution<_RealType>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/functional:58:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qmap.h:54,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtCore/qdebug.h:47,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtCore/QDebug:1,
from ..\Upload\main.cpp:4:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/std_function.h:770:5: note: candidate: template<class _Res, class ... _Args> bool std::operator==(std::nullptr_t, const std::function<_Res(_ArgTypes ...)>&)
operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept
^~~~~~~~
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/bits/std_function.h:770:5: note: template argument deduction/substitution failed:
In file included from C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/future:39:0,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/qthread.h:50,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtCore/QtCore:229,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include/QtSql/QtSqlDepends:3,
from C:\Qt\Qt5.12.0\5.12.0\mingw73_64\include\QtSql/QtSql:3,
from ..\Upload\main.cpp:6:
C:/Qt/Qt5.12.0/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/thread:276:33: note: 'std::thread::native_handle_type {aka ptw32_handle_t}' is not derived from 'const std::function<_Res(_ArgTypes ...)>'
return __x._M_thread == __y._M_thread;
^~~~~~~~~
mingw32-make[1]: *** [Makefile.Debug:380: debug/main.o] Error 1
mingw32-make: *** [Makefile:36: debug] Error 2
mingw32-make[1]: Leaving directory 'E:/User/databasePrograms/build-Upload-Desktop_Qt_5_12_0_MinGW_64_bit-Debug'
14:13:52: The process "C:\Qt\Qt5.12.0\Tools\mingw730_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Upload (kit: Desktop Qt 5.12.0 MinGW 64-bit)
When executing step "Make"
14:13:52: Elapsed time: 00:05.