[英]Make: "The system cannot find the path specified" only when compiling with makefile?
[英]C makefile, in CCS, “The system cannot find the file specified”
我是makefiles的新手,所以請耐心等待。 我試圖在Code Composer Studios中編輯自動生成的makefile,但是我收到了一個錯誤。 這是makefile的摘錄
# All Target
all: makefile_project_test1.out
@echo ''
@echo '============================'
@echo 'APPLICATION BUILD SUCCESSFUL'
@echo '============================'
@echo ''
@myfaketarget
# Other Targets
.PHONY: myfaketarget
myfaketarget:
echo "TEST MY FAKE TARGET"
這是打印出來的錯誤消息。
process_begin: CreateProcess(NULL, myfaketarget, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [all] Error 2
任何人都可以對此有所了解,並幫助我清楚地編譯它嗎? 謝謝
@myfaketarget
行是命令行。 您告訴make運行名為myfaketarget
的系統命令。 那不是二進制/應用程序/等。 雖然如此系統(Windows)不能這樣做。
如果您希望myfaketarget
目標作為all
目標的先決條件運行,那么您希望在all: makefile_project_test1.out
行上的makefile_project_test1.out
旁邊列出它。
如果你希望在運行all
主體的其余部分之后運行該目標(即@myfaketarget
行的位置),那么你需要自己手動運行make myfaketarget
(可能是$(MAKE) myfaketarget
具體取決於make版本)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.