Skip to content

Instantly share code, notes, and snippets.

@fxposter
Created March 3, 2013 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxposter/5077806 to your computer and use it in GitHub Desktop.
Save fxposter/5077806 to your computer and use it in GitHub Desktop.
C++ GM clang fix
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