Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MSVC compile error after installed 5.10: 'QChar::QChar(ushort) noexcept':
Forum Updated to NodeBB v4.3 + New Features

MSVC compile error after installed 5.10: 'QChar::QChar(ushort) noexcept':

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 8 Posters 7.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V VeNToR
    10 Dec 2017, 15:01

    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...

    A Offline
    A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on 10 Dec 2017, 15:12 last edited by
    #2

    Hi @VeNToR,

    did you install all updates for MSVC 2015?

    Qt has to stay free or it will die.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VeNToR
      wrote on 10 Dec 2017, 15:13 last edited by
      #3

      Yes, already installed.

      A 1 Reply Last reply 10 Dec 2017, 15:16
      0
      • V VeNToR
        10 Dec 2017, 15:13

        Yes, already installed.

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 10 Dec 2017, 15:16 last edited by
        #4

        @VeNToR then please show a minimal example that leads to this error. Thanks

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          VeNToR
          wrote on 10 Dec 2017, 15:23 last edited by
          #5

          You can see the error on minimal example.

          0_1512919500697_bd83beed-bbb7-4d7b-846d-5ddaace42ad1-image.png

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 10 Dec 2017, 21:39 last edited by
            #6

            Hi,

            Are you modify the Zc compiler option in your project ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            V X 2 Replies Last reply 10 Dec 2017, 22:00
            2
            • H Offline
              H Offline
              hskoglund
              wrote on 10 Dec 2017, 21:53 last edited by
              #7

              Hi, also to add to @SGaist's question, do you get the same error when you compile in Release mode?

              V 1 Reply Last reply 10 Dec 2017, 22:00
              0
              • V Offline
                V Offline
                VeNToR
                wrote on 10 Dec 2017, 21:58 last edited by
                #8

                Thanks for everybody, I solved by create the solution again... Simple but takes a long time... Still I don't know why ?

                1 Reply Last reply
                0
                • H hskoglund
                  10 Dec 2017, 21:53

                  Hi, also to add to @SGaist's question, do you get the same error when you compile in Release mode?

                  V Offline
                  V Offline
                  VeNToR
                  wrote on 10 Dec 2017, 22:00 last edited by
                  #9

                  @hskoglund Yes, I did.

                  1 Reply Last reply
                  0
                  • S SGaist
                    10 Dec 2017, 21:39

                    Hi,

                    Are you modify the Zc compiler option in your project ?

                    V Offline
                    V Offline
                    VeNToR
                    wrote on 10 Dec 2017, 22:00 last edited by
                    #10

                    @SGaist Yes, but not solved.

                    1 Reply Last reply
                    0
                    • S SGaist
                      10 Dec 2017, 21:39

                      Hi,

                      Are you modify the Zc compiler option in your project ?

                      X Offline
                      X Offline
                      xmichelo
                      wrote on 11 Dec 2017, 15:25 last edited by
                      #11

                      @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.

                      X E 2 Replies Last reply 20 Jan 2018, 07:23
                      3
                      • X xmichelo
                        11 Dec 2017, 15:25

                        @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.

                        X Offline
                        X Offline
                        xfsds
                        wrote on 20 Jan 2018, 07:23 last edited by
                        #12

                        @xmichelo Thanks! This really helps!

                        1 Reply Last reply
                        1
                        • X xmichelo
                          11 Dec 2017, 15:25

                          @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.

                          E Offline
                          E Offline
                          eRic67
                          wrote on 24 Jan 2018, 15:53 last edited by
                          #13

                          @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)

                          V 1 Reply Last reply 25 Jan 2018, 19:12
                          0
                          • E eRic67
                            24 Jan 2018, 15:53

                            @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)

                            V Offline
                            V Offline
                            VeNToR
                            wrote on 25 Jan 2018, 19:12 last edited by
                            #14

                            @eRic67 I solved the problem "re-create the solutions"... Stupid but %100 good solution !

                            M 1 Reply Last reply 18 Jul 2018, 13:13
                            0
                            • V VeNToR
                              25 Jan 2018, 19:12

                              @eRic67 I solved the problem "re-create the solutions"... Stupid but %100 good solution !

                              M Offline
                              M Offline
                              Murilo Malavazi
                              wrote on 18 Jul 2018, 13:13 last edited by
                              #15

                              @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.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved