bugfix: build err for gcc with high version

error: expected '(' for function-style cast or type construction
This commit is contained in:
Yaofu
2024-08-09 16:10:12 +08:00
committed by GitHub
parent d64070f0e4
commit ac358396a2
+2 -1
View File
@@ -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