From 5c03468396f922aed5c60f3c1396b4e38a85b361 Mon Sep 17 00:00:00 2001 From: Micah Elizabeth Scott <micah@misc.name> Date: Sun, 18 Jun 2017 14:12:36 -0700 Subject: [PATCH] Explicitly compile with C++11 --- examples/cpp/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/cpp/Makefile b/examples/cpp/Makefile index 2eb77f1..f31fd33 100644 --- a/examples/cpp/Makefile +++ b/examples/cpp/Makefile @@ -10,6 +10,8 @@ LFLAGS = -lm -lstdc++ -lpthread CFLAGS += -g -Wall LFLAGS += -g +CFLAGS += -std=c++11 + # Annoying warnings on by default on Mac OS CFLAGS += -Wno-tautological-constant-out-of-range-compare -Wno-gnu-static-float-init -- GitLab