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. Running the example form GitHub

Running the example form GitHub

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 742 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.
  • D Offline
    D Offline
    Damian7546
    wrote on last edited by
    #1

    Hi,
    I have a problem with running below example:
    https://github.com/sadeqAlbana/newCashCodeCLI.git

    Anyone can help me ?

    So, I open QtCreator, choose exapmles.pro , next I choose Desktop Qt 5.15.2 MSVC2019 32bit but after build I have errors like below:

    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\experimental\filesystem:30: error: C1189: #error: The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to suppress this error.

    Where and what should I can change ?

    Christian EhrlicherC 1 Reply Last reply
    0
    • D Damian7546

      @Christian-Ehrlicher Where I should define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING ?

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #6

      The error tells you to replace <experimental/filesystem> with <filesystem> in your code...

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply
      2
      • D Damian7546

        Hi,
        I have a problem with running below example:
        https://github.com/sadeqAlbana/newCashCodeCLI.git

        Anyone can help me ?

        So, I open QtCreator, choose exapmles.pro , next I choose Desktop Qt 5.15.2 MSVC2019 32bit but after build I have errors like below:

        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\experimental\filesystem:30: error: C1189: #error: The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to suppress this error.

        Where and what should I can change ?

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        This is not an error but a warning and it tells you exactly what to do. But since a warning you can also ignore it.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        D 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          This is not an error but a warning and it tells you exactly what to do. But since a warning you can also ignore it.

          D Offline
          D Offline
          Damian7546
          wrote on last edited by Damian7546
          #3

          @Christian-Ehrlicher are you sure?
          1.jpg

          The app doesn't start

          After run qmake i get :
          1.jpg

          And buid output:
          1.png

          Christian EhrlicherC 1 Reply Last reply
          0
          • D Damian7546

            @Christian-Ehrlicher are you sure?
            1.jpg

            The app doesn't start

            After run qmake i get :
            1.jpg

            And buid output:
            1.png

            Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Ah, fatal error now in recent MSVC versions. But as before the error tells you what to do with the code to make it compile.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            D 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              Ah, fatal error now in recent MSVC versions. But as before the error tells you what to do with the code to make it compile.

              D Offline
              D Offline
              Damian7546
              wrote on last edited by
              #5

              @Christian-Ehrlicher Where I should define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING ?

              Christian EhrlicherC 1 Reply Last reply
              0
              • D Damian7546

                @Christian-Ehrlicher Where I should define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING ?

                Christian EhrlicherC Online
                Christian EhrlicherC Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #6

                The error tells you to replace <experimental/filesystem> with <filesystem> in your code...

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                D 1 Reply Last reply
                2
                • Christian EhrlicherC Christian Ehrlicher

                  The error tells you to replace <experimental/filesystem> with <filesystem> in your code...

                  D Offline
                  D Offline
                  Damian7546
                  wrote on last edited by Damian7546
                  #7

                  Ok, works. Thanks.

                  1 Reply Last reply
                  1
                  • SGaistS SGaist has marked this topic as solved on

                  • Login

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