Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++17 std::filesystem instead of boost #56

Open
paamand opened this issue Mar 2, 2020 · 4 comments
Open

C++17 std::filesystem instead of boost #56

paamand opened this issue Mar 2, 2020 · 4 comments

Comments

@paamand
Copy link

paamand commented Mar 2, 2020

Can we use std::filesystem (in c++17) instead of Boost::filesystem?

@ThrashAbaddon
Copy link

I'm having problems because of this

c:\build\cpp-dependencies>cmake --build . --config Release
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Analysis.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOV
ED. 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. [C:\build_scn_vs2015\cpp-dependencies\src\cpp_dependencies_lib.vcxproj]
  CmakeRegen.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOV
ED. 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. [C:\build_scn_vs2015\cpp-dependencies\src\cpp_dependencies_lib.vcxproj]
  Component.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOV
ED. 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. [C:\build_scn_vs2015\cpp-dependencies\src\cpp_dependencies_lib.vcxproj]
  generated.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOV
ED. 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. [C:\build_scn_vs2015\cpp-dependencies\src\cpp_dependencies_lib.vcxproj]
  Input.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOV
ED. 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. [C:\build_scn_vs2015\cpp-dependencies\src\cpp_dependencies_lib.vcxproj]
  Output.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\include\experimental/filesystem(30,1): fatal error C1189: #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOV
ED. 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. [C:\build_scn_vs2015\cpp-dependencies\src\cpp_dependencies_lib.vcxproj]
  Generating Code...

@Gusabary
Copy link

Gusabary commented Apr 6, 2021

Can we use std::filesystem (in c++17) instead of Boost::filesystem?

of course you can, just use cmake -DWITH_BOOST=OFF .. when configuring the project

@klartext
Copy link

klartext commented Jan 4, 2023

Also got coredump on Arch after some first experiments in the cpp-dependecies directory.
With 'cmake -DWITH_BOOST=OFF' even compilation failed (error: ‘strstr’ was not declared in this scope)

@RobertAlbus
Copy link

Seeing this still as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants