【发布时间】:2018-08-21 21:06:58
【问题描述】:
我尝试下载 cygwin 来运行我的 makefile,但出现以下错误:
> make
FIND: formato del parametro non corretto
FIND: formato del parametro non corretto
g++ -o esempio
g++.exe: fatal error: no input files
compilation terminated.
makefile:12: recipe for target 'esempio' failed
make: *** [esempio] Error 1
这是我的基本生成文件:
PHONY: all clean
CPPSOURCES += $(shell find . -name '*.cpp')
clean:
rm esempio
all: esempio
@true
esempio: $(CPPSOURCES)
g++ $(CPPSOURCES) -o esempio
我能做些什么来解决它?
【问题讨论】:
-
FIND:之类的错误消息表明(对我而言)它正在尝试运行 MS-WindowsFIND,而不是 *nixfind。编辑您的 Q 以显示从产生上述错误消息的同一终端窗口运行echo $PATH的输出。祝你好运。
标签: linux windows makefile cygwin