我的makefile是这样的:
all:
$(CC) server.c -std=c11 -g -O3 -Werror -Wall -Wextra -pthread -pedantic -o server
$(CC) client.c -std=c11 -g -O3 -Werror -Wall -Wextra -pthread -pedantic -o client
clean:
rm -f server
rm -f client
然后在Ubuntu里面make之后:
make
cc server.c -std=c11 -g -O3 -Werror -Wall -Wextra -pthread -pedantic -o server
make: cc: Command not found
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 127
求大神帮忙看下哪里出错了,我gcc也安装了也没用
all:
$(CC) server.c -std=c11 -g -O3 -Werror -Wall -Wextra -pthread -pedantic -o server
$(CC) client.c -std=c11 -g -O3 -Werror -Wall -Wextra -pthread -pedantic -o client
clean:
rm -f server
rm -f client
然后在Ubuntu里面make之后:
make
cc server.c -std=c11 -g -O3 -Werror -Wall -Wextra -pthread -pedantic -o server
make: cc: Command not found
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 127
求大神帮忙看下哪里出错了,我gcc也安装了也没用