MSVC compile error after installed 5.10: 'QChar::QChar(ushort) noexcept':
-
Hi;
I got compile error "C:\Qt\Qt5.10.0\5.10.0\msvc2015_64\include\QtCore/qchar.h(94): error C2535: 'QChar::QChar(ushort) noexcept': member function already defined or declared" after installed Qt 5.10.
Thanks your help...
Hi @VeNToR,
did you install all updates for MSVC 2015?
-
wrote on 10 Dec 2017, 15:13 last edited by
Yes, already installed.
-
@VeNToR then please show a minimal example that leads to this error. Thanks
-
wrote on 10 Dec 2017, 15:23 last edited by
-
Hi,
Are you modify the
Zc
compiler option in your project ? -
wrote on 10 Dec 2017, 21:58 last edited by
Thanks for everybody, I solved by create the solution again... Simple but takes a long time... Still I don't know why ?
-
Hi, also to add to @SGaist's question, do you get the same error when you compile in Release mode?
wrote on 10 Dec 2017, 22:00 last edited by@hskoglund Yes, I did.
-
wrote on 11 Dec 2017, 15:25 last edited by
@SGaist I encountered the same problem with one of the static libraries I use, and the cause was indeed the Zc compiler option. In C/C++ →Language, the Treat WChar_t As Built in Type value must be set to Yes. Thanks for your help.
-
@SGaist I encountered the same problem with one of the static libraries I use, and the cause was indeed the Zc compiler option. In C/C++ →Language, the Treat WChar_t As Built in Type value must be set to Yes. Thanks for your help.
-
@SGaist I encountered the same problem with one of the static libraries I use, and the cause was indeed the Zc compiler option. In C/C++ →Language, the Treat WChar_t As Built in Type value must be set to Yes. Thanks for your help.
wrote on 24 Jan 2018, 15:53 last edited by@xmichelo, in my case, after setting WChar_t As Built in Type to Yes, i am not able to link to a 3rd party library anymore (xercesc).
With 5.9, i did not have such problem. Seems that something has changed between 5.9 and 5.10.
Now, i am facing errors like:
read_input_xml_options.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char * __cdecl xercesc_2_7::XMLString::transcode(wchar_t const * const)" (_imp?transcode@XMLString@xercesc_2_7@@SAPEADQEB_W@Z)
-
@xmichelo, in my case, after setting WChar_t As Built in Type to Yes, i am not able to link to a 3rd party library anymore (xercesc).
With 5.9, i did not have such problem. Seems that something has changed between 5.9 and 5.10.
Now, i am facing errors like:
read_input_xml_options.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char * __cdecl xercesc_2_7::XMLString::transcode(wchar_t const * const)" (_imp?transcode@XMLString@xercesc_2_7@@SAPEADQEB_W@Z)
-
wrote on 18 Jul 2018, 13:13 last edited by
@VeNToR What do you mean when you say "re-create the solution" ? I got the same problem here and I don't know how to fix it.