From ac358396a20c77cf664076c5844e656acb5978f2 Mon Sep 17 00:00:00 2001 From: Yaofu Date: Fri, 9 Aug 2024 16:10:12 +0800 Subject: [PATCH] bugfix: build err for gcc with high version error: expected '(' for function-style cast or type construction --- unit-test/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit-test/Makefile b/unit-test/Makefile index bf1c456..c395dce 100644 --- a/unit-test/Makefile +++ b/unit-test/Makefile @@ -1,5 +1,6 @@ PROJECT = unittest +CXX=gcc -g -std=c++11 CC=gcc -g SHARED_FLAG = -fPIC -shared @@ -42,7 +43,7 @@ install : cp unittest ../test %.o : %.cpp - $(CC) $(INC) -c $< -o $@ + $(CXX) $(INC) -c $< -o $@ %.o : %.c $(CC) $(INC) -c $< -o $@ %.o : %.cc