From 26bb4ffe79064d736591ff65709346c23c2c91f0 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 25 May 2021 03:38:06 +0800 Subject: [PATCH] windows build wip --- docs/software/windows-build-instructions.md | 7 +++++++ src/RedirectablePrint.cpp | 3 +++ src/graphics/Screen.h | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 docs/software/windows-build-instructions.md diff --git a/docs/software/windows-build-instructions.md b/docs/software/windows-build-instructions.md new file mode 100644 index 000000000..9a7ec19e8 --- /dev/null +++ b/docs/software/windows-build-instructions.md @@ -0,0 +1,7 @@ + + +* install python +* install git (including git-bash) +* install platformio +* install vscode +* install https://sourceforge.net/projects/mingw-w64/ (for windows gcc/g++) - you'll need to add the bin directory to your PATH diff --git a/src/RedirectablePrint.cpp b/src/RedirectablePrint.cpp index 4c460d77f..aeee519b8 100644 --- a/src/RedirectablePrint.cpp +++ b/src/RedirectablePrint.cpp @@ -4,6 +4,9 @@ #include #include #include +#include + +using namespace std; /** * A printer that doesn't go anywhere diff --git a/src/graphics/Screen.h b/src/graphics/Screen.h index 9be119a48..c0518f7c0 100644 --- a/src/graphics/Screen.h +++ b/src/graphics/Screen.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include @@ -26,6 +27,8 @@ #define BRIGHTNESS_DEFAULT 150 #endif +using namespace std; + namespace graphics {