Browse Source

swithed to C++17 and std::filesystem

pull/100/head
orignal 3 months ago
parent
commit
8fdec1f30f
  1. 2
      Makefile
  2. 2
      i2pd
  3. 4
      vain.cpp

2
Makefile

@ -12,7 +12,7 @@ INCFLAGS = -I$(LIBI2PD_PATH) -I$(LIBI2PD_CLIENT_PATH) @@ -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)

2
i2pd

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit c98926abf2dcd3cbe2cbbfc00a9e9159240c3df9
Subproject commit 9668ea9338fe8524781d6966f576227775129769

4
vain.cpp

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
#include<regex>
#include<getopt.h>
#include<string>
#include<boost/filesystem.hpp>
#include<filesystem>
//#include<boost/algorithm/string/predicate.hpp>
//#include<format> // is not supports for me
@ -428,7 +428,7 @@ int main (int argc, char * argv[]) @@ -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";

Loading…
Cancel
Save