vs2019 filesystem問題 #error The header providing std::experimental::filesystem is deprecated by Microsoft \。。。



1、#include <experimental/filesystem> 
舊版本文件,將產生錯誤:
#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 acknowledge that you have received this warning.

2、#include <filesystem>
修改后成功運行。
————————————————
原文鏈接:https://blog.csdn.net/HUANG_XIAOJUN/article/details/103208551


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM