1、makefile: *** 遺漏分隔符問題
makefile:2: *** 遺漏分隔符
make時出現“makefile:2: *** 遺漏分隔符 。 停止。”問題,
解決:
原因是在編寫makefile檔案時:
是tab分隔符,不能用空格
2、交叉編譯位址改 成 /usr/local/arm/4.3.2/arm-none-linux-gnueabi/bin後 提示:
g++: error trying to exec 'cc1plus': execvp: No such file or directory
make: *** [project.o] Error 1
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
解決:
gedit ~/.bashrc 改回原來的編譯器位址
export PATH=/usr/local/arm/4.3.2/bin:$PATH
#export PATH=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/bin:$PATH