当我提供了EXTRAINCDIRS的路径(在Makefile中,继WINAVR提供的样品)没有空格,编译器能够找到我的头文件,但是当我使用包含空格的路径(用引号括起来,作为评论Makefile文件直接),它提出: error: No such file or directory
。
"d:/dev/avr/atmega/shared/" # will search files in this dir
"d:/dev/avr/atmega/sha ed/" # will not search this dir for files
我的意思是,评论说:
# List any extra directories to look for include files here.
# Each directory must be seperated by a space.
# Use forward slashes for directory separators.
# For a directory that has spaces, enclose it in quotes.
任何想法如何让WINAVR正确处理呢?
我使用的程序员在Windows XP中的记事本(WINAVR)。 下面是命令行命令:
avr-g++ -c -mmcu=atmega328p -I. -gdwarf-2 -DF_CPU=UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst -I"d:/dev/avr/atmega/shared/" -I"d:/dev/avr/atmega/sha -Ied/" -std=gnu99 -MMD -MP -MF .dep/main.o.d main.c -o main.o