Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. c++/cli compilation problem after Qt 5.12.1 migration

c++/cli compilation problem after Qt 5.12.1 migration

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 1.0k Views
  • 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.
  • T Offline
    T Offline
    TRELY
    wrote on last edited by
    #1

    Hi all,

    I have a c++/cli project that works before with Qt 5.6 and Qt 5.9.
    And now after a migration to Qt 5.12.1 the compilation of the project does not work anymore.

    I have 2 errors :

    • C2440 : reinterpret_cast: cannot convert from 'nullptr' to 'quintptr' : line 109 from file qhashfunctions.h
    • C1189 : #error: <future> is not supported when compiling with /clr or /clr:pure.

    I try to recompile with Qt5.6.1 or Qt 5.9.1 and it works.
    Anyone have an idea why it does not work with Qt 5.12.1?

    Thank you.

    aha_1980A 1 Reply Last reply
    0
    • T TRELY

      Hi all,

      I have a c++/cli project that works before with Qt 5.6 and Qt 5.9.
      And now after a migration to Qt 5.12.1 the compilation of the project does not work anymore.

      I have 2 errors :

      • C2440 : reinterpret_cast: cannot convert from 'nullptr' to 'quintptr' : line 109 from file qhashfunctions.h
      • C1189 : #error: <future> is not supported when compiling with /clr or /clr:pure.

      I try to recompile with Qt5.6.1 or Qt 5.9.1 and it works.
      Anyone have an idea why it does not work with Qt 5.12.1?

      Thank you.

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

      Hi @TRELY,

      I guess you changed the compiler too. Can you tell us which compiler corresponds the these Qt versions?

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • T Offline
        T Offline
        TRELY
        wrote on last edited by
        #3

        Hello @aha_1980 ,

        Thank you for your answer. I did not change my compiler : Visual Studio 2015.

        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