I cant run a simple code with boost.
Error:
C++ Code:
#include "stdafx.h" #include <string> #include <iostream> #include <experimental/filesystem> #include <fstream> #include "boost/filesystem.hpp" namespace fs = std::experimental::filesystem; //for visual studio int main() { fs::path path = "C:/Users/PC/Downloads"; //Path for (auto &p : fs::recursive_directory_iterator(path)) { //looking for all files in directory/subdirectory fs::path new_path = p.path(); new_path.replace_extension(".data"); fs::rename(p.path(), new_path); } return 0; }
Boost Path: C:\boost_1_65_1
I'm using Visual Studio 2017 (v141) on Windows 10 64Bit
Visual Studio 2017 Settings:
Output:
Log in to post a comment.
I cant run a simple code with boost.
Error:

C++ Code:
Boost Path: C:\boost_1_65_1
I'm using Visual Studio 2017 (v141) on Windows 10 64Bit
Visual Studio 2017 Settings:



Output:

Last edit: cascraft 2017-09-16