diff --git a/src/Companion.cpp b/src/Companion.cpp index 761f2eb..5780d29 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -329,7 +329,7 @@ void Companion::Process() { std::ofstream file(output, std::ios::binary); if(gExporterType == ExportType::Header) { - std::string symbol = entry.path().stem(); + std::string symbol = entry.path().stem().string(); std::transform(symbol.begin(), symbol.end(), symbol.begin(), toupper); file << "#ifndef " << symbol << "_H" << std::endl; file << "#define " << symbol << "_H" << std::endl << std::endl; diff --git a/src/factories/BaseFactory.h b/src/factories/BaseFactory.h index 365816b..706116d 100644 --- a/src/factories/BaseFactory.h +++ b/src/factories/BaseFactory.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/src/factories/LightsFactory.cpp b/src/factories/LightsFactory.cpp index a0cf692..ec44fcf 100644 --- a/src/factories/LightsFactory.cpp +++ b/src/factories/LightsFactory.cpp @@ -68,9 +68,9 @@ std::optional> LightsFactory::parse(std::vector