bugfix: build err for gcc with high version

error: expected '(' for function-style cast or type construction
master
Yaofu 1 year ago committed by GitHub
parent d64070f0e4
commit ac358396a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,6 @@
PROJECT = unittest PROJECT = unittest
CXX=gcc -g -std=c++11
CC=gcc -g CC=gcc -g
SHARED_FLAG = -fPIC -shared SHARED_FLAG = -fPIC -shared
@ -42,7 +43,7 @@ install :
cp unittest ../test cp unittest ../test
%.o : %.cpp %.o : %.cpp
$(CC) $(INC) -c $< -o $@ $(CXX) $(INC) -c $< -o $@
%.o : %.c %.o : %.c
$(CC) $(INC) -c $< -o $@ $(CC) $(INC) -c $< -o $@
%.o : %.cc %.o : %.cc

Loading…
Cancel
Save