我使用的是WSL(Windows Linux子系统(,版本是Ubuntu 20.04 LTS。
BUILD_TOOL =
build_tool.o
CC = clang-3.8
LIBS = ../out/x64/libmbedcrypto.a
all: build_tool
build_tool: $(BUILD_TOOL)
$(CC) $(BUILD_TOOL) $(LIBS) -o build_tool
显示错误:clang-3.8: command not found
我试过通过apt-get安装它,但没有安装候选程序。
$ sudo apt-get install clang-3.8`
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package clang-3.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'clang-3.8' has no installation candidate
可在Ubuntu 20.04 LTS中使用。
sudo apt update
sudo apt install clang
并将Makefile重写为:
CC = clang