pthread の例をコンパイルしようとしていますが、次のエラーが発生します。
make: *** No rule to make target `example.cpp', needed by `example.o'. Stop.
これは私のメイクファイルです:
CC = g++
CCFLAGS = -Wall
example: example.o
$(CC) $(CCFLAGS) -o example example.o -pthread
example.o: example.cpp
$(CC) $(CCFLAGS) -c example.cpp -pthread
clean:
- rm *.o
- rm example
-pthread フラグを含めましたが、コンパイルするために他に何が必要かわかりません。誰にもアイデアはありますか?どうもありがとうございました。