diff --git a/examples/cpp/Makefile b/examples/cpp/Makefile index 2eb77f186d2db187f860309098248e584c303a60..f31fd330f2ec6c635a1df5fd72000e149bc9dc49 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