我有一个现有的Win32 c ++项目,经过多番尝试和运气,我已经正确设置了所有编译器/链接器选项,以便指向qt源。但是,使用“ #include”编译.cpp时,出现以下错误输出
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(524): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(525): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(526): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(528): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(530): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(532): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(533): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(535): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(536): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(538): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(539): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(540): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(541): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(542): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(544): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(546): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(548): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(550): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(557): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(558): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(559): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(583): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(584): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(585): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qchar.h(586): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
1>C:\Qt\5.12.2\msvc2017\include\QtCore/qhashfunctions.h(109): error C2440: 'reinterpret_cast': cannot convert from 'nullptr' to 'quintptr'
1> C:\Qt\5.12.2\msvc2017\include\QtCore/qhashfunctions.h(109): note: nullptr can only be converted to pointer or handle types
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\future(8): fatal error C1189: #error: <future> is not supported when compiling with /clr or /clr:pure.
我假设的第一批警告是可以的,但不确定如何处理reinterpret_cast错误