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. how to resolve C3615 errors in visual studio 2017

how to resolve C3615 errors in visual studio 2017

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 4 Posters 5.8k 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.
  • L Offline
    L Offline
    LJay
    wrote on last edited by
    #1

    I have tried to build the project in visual studio 2017 using msvc 2013 of Qt 5.5. and I got some C 3615 errors that said "constexpr fuction 'QUuid::operator =' cannot result in a constant expression.". I tried and tried again to search for solution with googling, I couldn't find a solution that I want. Please find a solution to resolve errors.

    aha_1980A 1 Reply Last reply
    0
    • L LJay

      I have tried to build the project in visual studio 2017 using msvc 2013 of Qt 5.5. and I got some C 3615 errors that said "constexpr fuction 'QUuid::operator =' cannot result in a constant expression.". I tried and tried again to search for solution with googling, I couldn't find a solution that I want. Please find a solution to resolve errors.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @LJay said in how to resolve C3615 errors in visual studio 2017:

      visual studio 2017 using msvc 2013 of Qt 5.5

      Are you using MSVC 2013 or MSVC2017? Qt version is 5.5? Also can you give a litte more context about the lines that causes the compile error?

      Regards

      Qt has to stay free or it will die.

      L 1 Reply Last reply
      1
      • aha_1980A aha_1980

        @LJay said in how to resolve C3615 errors in visual studio 2017:

        visual studio 2017 using msvc 2013 of Qt 5.5

        Are you using MSVC 2013 or MSVC2017? Qt version is 5.5? Also can you give a litte more context about the lines that causes the compile error?

        Regards

        L Offline
        L Offline
        LJay
        wrote on last edited by
        #3

        @aha_1980 thank you for replying. Qt version is 5.5 and msvc 2013 was used like I wrote above. also, I used visual studio 2017 lastest version. The error code is C3615, which said that "constexpr function 'QUuid::operator =' cannot result in a constant expression.". The error list displayed that this error is caused in quuid.h file.

        aha_1980A JKSHJ 2 Replies Last reply
        0
        • L LJay

          @aha_1980 thank you for replying. Qt version is 5.5 and msvc 2013 was used like I wrote above. also, I used visual studio 2017 lastest version. The error code is C3615, which said that "constexpr function 'QUuid::operator =' cannot result in a constant expression.". The error list displayed that this error is caused in quuid.h file.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @LJay yeah, but what is your code? How should we reproduce your problem if you don't provide us a minimal example that shows your problem?

          Regards

          Qt has to stay free or it will die.

          L 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @LJay yeah, but what is your code? How should we reproduce your problem if you don't provide us a minimal example that shows your problem?

            Regards

            L Offline
            L Offline
            LJay
            wrote on last edited by
            #5

            @aha_1980 In source code, there is no error. quuid header file is not written by me. it is offered by the Qt company. what I wanna know is the way to resolve C3615 error. what do you wanna know in detail to find a solution? thank you again for replying me.

            VRoninV 1 Reply Last reply
            0
            • L LJay

              @aha_1980 In source code, there is no error. quuid header file is not written by me. it is offered by the Qt company. what I wanna know is the way to resolve C3615 error. what do you wanna know in detail to find a solution? thank you again for replying me.

              VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              @LJay said in how to resolve C3615 errors in visual studio 2017:

              what do you wanna know in detail to find a solution?

              What compiler you are using.

              Looks like you are mixing different compiler versions or libraries built with different compiler versions and that is unsupported by MSVC.

              You need to make very clear what compiler and what Qt version (number, compiler and architecture)

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              L 1 Reply Last reply
              3
              • L LJay

                @aha_1980 thank you for replying. Qt version is 5.5 and msvc 2013 was used like I wrote above. also, I used visual studio 2017 lastest version. The error code is C3615, which said that "constexpr function 'QUuid::operator =' cannot result in a constant expression.". The error list displayed that this error is caused in quuid.h file.

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by JKSH
                #7

                @LJay said in how to resolve C3615 errors in visual studio 2017:

                Qt version is 5.5 and msvc 2013 was used like I wrote above. also, I used visual studio 2017 lastest version.

                Do you mean you are using the Visual Studio 2017 IDE with an older compiler (Visual C++ 2013)?

                The original version of Visual C++ 2013 doesn't support constexpr. You must upgrade to the November 2013 CTP.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                L 1 Reply Last reply
                1
                • VRoninV VRonin

                  @LJay said in how to resolve C3615 errors in visual studio 2017:

                  what do you wanna know in detail to find a solution?

                  What compiler you are using.

                  Looks like you are mixing different compiler versions or libraries built with different compiler versions and that is unsupported by MSVC.

                  You need to make very clear what compiler and what Qt version (number, compiler and architecture)

                  L Offline
                  L Offline
                  LJay
                  wrote on last edited by
                  #8

                  @VRonin first, thank you for replying.
                  I used Visual C++ Compiler 15.0 and Qt version is 5.5 like I said above.
                  because the project I tried to build is made by Qt 5.5.
                  what exactly do you mean about architecture?

                  1 Reply Last reply
                  0
                  • JKSHJ JKSH

                    @LJay said in how to resolve C3615 errors in visual studio 2017:

                    Qt version is 5.5 and msvc 2013 was used like I wrote above. also, I used visual studio 2017 lastest version.

                    Do you mean you are using the Visual Studio 2017 IDE with an older compiler (Visual C++ 2013)?

                    The original version of Visual C++ 2013 doesn't support constexpr. You must upgrade to the November 2013 CTP.

                    L Offline
                    L Offline
                    LJay
                    wrote on last edited by
                    #9

                    @JKSH Thank you for replying.
                    I used the default compiler of Visual Studio 2017. I didn't modify any configuration related with the compiler.

                    JKSHJ 1 Reply Last reply
                    0
                    • L LJay

                      @JKSH Thank you for replying.
                      I used the default compiler of Visual Studio 2017. I didn't modify any configuration related with the compiler.

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by JKSH
                      #10

                      @LJay said in how to resolve C3615 errors in visual studio 2017:

                      I used the default compiler of Visual Studio 2017.

                      That won't work. Visual C++ Compiler 15.0 is not compatible with Qt for MSVC 2013.

                      You must either upgrade Qt or downgrade your compiler.

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      L 1 Reply Last reply
                      3
                      • JKSHJ JKSH

                        @LJay said in how to resolve C3615 errors in visual studio 2017:

                        I used the default compiler of Visual Studio 2017.

                        That won't work. Visual C++ Compiler 15.0 is not compatible with Qt for MSVC 2013.

                        You must either upgrade Qt or downgrade your compiler.

                        L Offline
                        L Offline
                        LJay
                        wrote on last edited by
                        #11

                        @JKSH The problem is that My project use WebKit and WebKitWidget and Qt 5.5 contains them but latest Qt version, 5.11.1, doesn't contain those things. therefore I used Qt 5.5. I don't know that Visual Studio 2017 is not compatible with Qt 5.5.
                        How can I do? just downgrading my compiler?

                        JKSHJ VRoninV 2 Replies Last reply
                        0
                        • L LJay

                          @JKSH The problem is that My project use WebKit and WebKitWidget and Qt 5.5 contains them but latest Qt version, 5.11.1, doesn't contain those things. therefore I used Qt 5.5. I don't know that Visual Studio 2017 is not compatible with Qt 5.5.
                          How can I do? just downgrading my compiler?

                          JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by JKSH
                          #12

                          @LJay said in how to resolve C3615 errors in visual studio 2017:

                          I don't know that Visual Studio 2017 is not compatible with Qt 5.5.

                          • Visual C++ Compiler 15.0 is compatible with Qt 5.5.
                          • Visual C++ Compiler 15.0 is not compatible with DLLs that were built using Visual C++ Compiler 13.0. (This includes Qt 5.5 for MSVC 2013)

                          How can I do? just downgrading my compiler?

                          You options are:

                          • Downgrade to Visual Studio 2013, OR
                          • Use Visual Studio 2017 to build Qt 5.5 yourself

                          The first option is easier.

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          L 1 Reply Last reply
                          3
                          • JKSHJ JKSH

                            @LJay said in how to resolve C3615 errors in visual studio 2017:

                            I don't know that Visual Studio 2017 is not compatible with Qt 5.5.

                            • Visual C++ Compiler 15.0 is compatible with Qt 5.5.
                            • Visual C++ Compiler 15.0 is not compatible with DLLs that were built using Visual C++ Compiler 13.0. (This includes Qt 5.5 for MSVC 2013)

                            How can I do? just downgrading my compiler?

                            You options are:

                            • Downgrade to Visual Studio 2013, OR
                            • Use Visual Studio 2017 to build Qt 5.5 yourself

                            The first option is easier.

                            L Offline
                            L Offline
                            LJay
                            wrote on last edited by
                            #13

                            @JKSH Thank you very much! Thank to your answer, I resolve this problem.
                            I just delete Qt 5.5 and installed Qt 5.11.1 and downloaded WebKit package.
                            and added to correct path, building is succeeded!

                            1 Reply Last reply
                            1
                            • L LJay

                              @JKSH The problem is that My project use WebKit and WebKitWidget and Qt 5.5 contains them but latest Qt version, 5.11.1, doesn't contain those things. therefore I used Qt 5.5. I don't know that Visual Studio 2017 is not compatible with Qt 5.5.
                              How can I do? just downgrading my compiler?

                              VRoninV Offline
                              VRoninV Offline
                              VRonin
                              wrote on last edited by aha_1980
                              #14

                              @LJay said in how to resolve C3615 errors in visual studio 2017:

                              My project use WebKit and WebKitWidget and Qt 5.5 contains them but latest Qt version, 5.11.1, doesn't contain those things. therefore I used Qt 5.5.

                              It's a bad idea to use outdated software when you are dealing with web stuff. You can use https://github.com/annulen/webkit with Qt 5.11 instead

                              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                              ~Napoleon Bonaparte

                              On a crusade to banish setIndexWidget() from the holy land of Qt

                              1 Reply Last reply
                              2
                              • J JohnLiao referenced this topic on

                              • Login

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