Created
March 3, 2013 19:24
-
-
Save fxposter/5077806 to your computer and use it in GitHub Desktop.
C++ GM clang fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 186ef46..84c8dfd 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -2,7 +2,7 @@ all: pptoken | |
# build pptoken application | |
pptoken: pptoken.cpp IPPTokenStream.h DebugPPTokenStream.h | |
- g++ -g -std=gnu++11 -Wall -o pptoken pptoken.cpp | |
+ clang++ -g -std=c++11 -stdlib=libc++ -Wall -o pptoken pptoken.cpp | |
# test pptoken application | |
test: all | |
diff --git a/pptoken.cpp b/pptoken.cpp | |
index 95e2459..51c4a5e 100644 | |
--- a/pptoken.cpp | |
+++ b/pptoken.cpp | |
@@ -5,6 +5,7 @@ | |
#include <algorithm> | |
#include <unordered_map> | |
#include <unordered_set> | |
+#include <vector> | |
using namespace std; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment