Running the example form GitHub
-
Hi,
I have a problem with running below example:
https://github.com/sadeqAlbana/newCashCodeCLI.gitAnyone can help me ?
So, I open QtCreator, choose
exapmles.pro
, next I chooseDesktop 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 ?
-
The error tells you to replace <experimental/filesystem> with <filesystem> in your code...
-
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.
-
-
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.
-
@Christian-Ehrlicher Where I should define
_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
? -
The error tells you to replace <experimental/filesystem> with <filesystem> in your code...
-
Ok, works. Thanks.
-