如何分析 AVR GCC 库头文件stdint.h 语法错误 编译环境:WINAVR20100110 + AVR Studio 4.18 5
avr-gcc-I"E:\Charge_SW\CHARGE\."-mmcu=atmega88p-Wall-gdwarf-2-std=gnu99-DF_CPU=800000...
avr-gcc -I"E:\Charge_SW\CHARGE\." -mmcu=atmega88p -Wall -gdwarf-2 -std=gnu99 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT adc.o -MF dep/adc.o.d -c ../adc.c
In file included from E:\Charge_SW\CHARGE\./inttypes.h:37,
from d:/winavr-20100110/lib/gcc/../../avr/include/avr/sfr_defs.h:126,
from d:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h:99,
from ../adc.c:24:
d:/winavr-20100110/lib/gcc/../../avr/include/stdint.h:121: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
d:/winavr-20100110/lib/gcc/../../avr/include/stdint.h:159: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int_least8_t'
d:/winavr-20100110/lib/gcc/../../avr/include/stdint.h:213: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int_fast8_t'
make: *** [adc.o] Error 1
Build failed with 3 errors and 0 warnings... 展开
In file included from E:\Charge_SW\CHARGE\./inttypes.h:37,
from d:/winavr-20100110/lib/gcc/../../avr/include/avr/sfr_defs.h:126,
from d:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h:99,
from ../adc.c:24:
d:/winavr-20100110/lib/gcc/../../avr/include/stdint.h:121: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
d:/winavr-20100110/lib/gcc/../../avr/include/stdint.h:159: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int_least8_t'
d:/winavr-20100110/lib/gcc/../../avr/include/stdint.h:213: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int_fast8_t'
make: *** [adc.o] Error 1
Build failed with 3 errors and 0 warnings... 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询