From 8fdec1f30ff0a713275da3b61e230eec58b2064b Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 2 Sep 2024 10:28:06 -0400 Subject: [PATCH] swithed to C++17 and std::filesystem --- Makefile | 2 +- i2pd | 2 +- vain.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 050eff9..818ea36 100755 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ INCFLAGS = -I$(LIBI2PD_PATH) -I$(LIBI2PD_CLIENT_PATH) DEFINES = -DOPENSSL_SUPPRESS_DEPRECATED LDFLAGS = -LDLIBS = $(I2PD_PATH)/$(I2PD_LIB) -lboost_system$(BOOST_SUFFIX) -lboost_date_time$(BOOST_SUFFIX) -lboost_filesystem$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz +LDLIBS = $(I2PD_PATH)/$(I2PD_LIB) -lboost_system$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz ifeq ($(UNAME),Linux) diff --git a/i2pd b/i2pd index c98926a..9668ea9 160000 --- a/i2pd +++ b/i2pd @@ -1 +1 @@ -Subproject commit c98926abf2dcd3cbe2cbbfc00a9e9159240c3df9 +Subproject commit 9668ea9338fe8524781d6966f576227775129769 diff --git a/vain.cpp b/vain.cpp index f2e11fa..ddee306 100755 --- a/vain.cpp +++ b/vain.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include //#include //#include // is not supports for me @@ -428,7 +428,7 @@ int main (int argc, char * argv[]) options.outputpath = options.outputpath + std::to_string(foundKeys) + std::string(".dat"); foundKeys++; //printf("foundKeys = %d\n", foundKeys); - }while( boost::filesystem::exists(options.outputpath) ); + }while( std::filesystem::exists(options.outputpath) ); //puts("do while cycle break"); //if ( ! boost::algorithm::ends_with(options.outputpath, ".dat") ) // options.outputpath = options.outputpath + ".dat";