diff --git a/lib/bmp_writer/bmp_writer.cpp b/lib/bmp_writer/bmp_writer.cpp index afc2799..9c68185 100644 --- a/lib/bmp_writer/bmp_writer.cpp +++ b/lib/bmp_writer/bmp_writer.cpp @@ -3,6 +3,7 @@ #include #include +#include BmpWriter::BmpWriter() { width_ = 0; @@ -24,7 +25,7 @@ void BmpWriter::ExportField(char* dirname, CoordinatesField& field, file_.open(path, std::ios::out | std::ios::binary); if (!file_.is_open()) { - std::cout << "Can't open file: " << path.native() << std::endl; + std::cout << "Can't open file: " << path.string() << std::endl; return; } diff --git a/lib/field/tsv_handler.cpp b/lib/field/tsv_handler.cpp index 6941b92..c0f6af1 100644 --- a/lib/field/tsv_handler.cpp +++ b/lib/field/tsv_handler.cpp @@ -53,7 +53,7 @@ bool TsvHandler::ExportTSV(char* dirname, CoordinatesField& field, int64_t numbe std::ofstream file(path, std::ios::out); if (!file.is_open()) { - std::cout << "Can't open file: " << path.native() << std::endl; + std::cout << "Can't open file: " << path.string() << std::endl; return false; }