From 9ec066f3d9acf86b16eef596b60c29ac24c675aa Mon Sep 17 00:00:00 2001 From: Dima Granetchi Date: Thu, 13 Jul 2017 14:12:44 +0300 Subject: [PATCH] Manually set c++11 standard Fix compilation on mac os. On ubuntu works too. --- src/main/cpp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cpp/Makefile b/src/main/cpp/Makefile index 3a8602d..2cd121f 100644 --- a/src/main/cpp/Makefile +++ b/src/main/cpp/Makefile @@ -1,7 +1,7 @@ default: tiv tiv.o: tiv.cpp CImg.h - g++ -Wall -fexceptions -O2 -c tiv.cpp -o tiv.o + g++ -std=c++11 -Wall -fexceptions -O2 -c tiv.cpp -o tiv.o tiv : tiv.o g++ tiv.o -o tiv -pthread -s