makefile出错,直接输入没问题,高手来
使用makefile出错,但直接输入单条编译是没有问题的。
windows CMD模式下直接输入可以编译成功:
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -g3 -MD -MP -MQ common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.o -O1 -D ACCESS_USB_ENABLED -D ARM_MATH_CM4=true -D BOARD=SAM4S_EK -D -D DEF_TOUCH_QDEBUG_ENABLE_AT=0 -D DEF_TOUCH_QDEBUG_ENABLE_QM=0 -D DEF_TOUCH_QDEBUG_ENABLE_QTA=0 -D DEF_TOUCH_QDEBUG_ENABLE_QTB=0 -D QTOUCH_SLIDER_REVERSED -D QT_DELAY_CYCLES=5 -D QT_NUM_CHANNELS=32 -D SNS1=C -D SNS2=A -D SNSK1=C -D SNSK2=A -D UDD_ENABLE -D _DEBUG_INTERFACE_ -D -D -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -std=gnu99 -ffunction-sections -fdata-sections -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wwrite-strings -Wsign-compare -Waggregate-return -Wmissing-declarations -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wcast-align --param max-inline-insns-single=500 -Dprintf=iprintf -c ../../../../../common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.c -o common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.o
但通过makefile,
@$(CC) -c $(CFLAGS) $< -o $@
echo出来内容和上面一样,但提示
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
make: *** [common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.
o] Error 1
有哪些地方会出问题呢?