From 4c30af3b9c877e75b82fafb96a7263d95aa61bbc Mon Sep 17 00:00:00 2001 From: yingzhang Date: Mon, 25 Jul 2022 18:27:19 +0800 Subject: [PATCH] Add -std=c++14 for application build --- src/MakeLib.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MakeLib.mk b/src/MakeLib.mk index 7a77efd..96ba694 100644 --- a/src/MakeLib.mk +++ b/src/MakeLib.mk @@ -26,12 +26,12 @@ ifeq ($(DEBUG),1) $(info Building debug version) ODIR:=$(ODIR_BASE)/lib/debug CFLAGS?=-Wall -Wextra -O0 -g -fPIC $(VISIBILITY) - CXXFLAGS?=-Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O0 -g -fPIC $(VISIBILITY) $(CXXINCLUDES) + CXXFLAGS?=-Wall -Wextra -Wno-missing-field-initializers --std=c++14 -O0 -g -fPIC $(VISIBILITY) $(CXXINCLUDES) else # Release mode options ODIR:=$(ODIR_BASE)/lib/release CFLAGS?=-Wall -Wextra -O3 -fPIC $(VISIBILITY) - CXXFLAGS?=-Wall -Wextra -Wno-missing-field-initializers --std=c++0x -O3 -fPIC $(VISIBILITY) $(CXXINCLUDES) + CXXFLAGS?=-Wall -Wextra -Wno-missing-field-initializers --std=c++14 -O3 -fPIC $(VISIBILITY) $(CXXINCLUDES) endif OBJ_NAMES= libnethogs.o packet.o connection.o process.o decpcap.o inode2prog.o conninode.o devices.o