error: macro names must be identifiers
avr studio 4 编译正常的工程拿到avr studio 5 下编译,出现“error: macro names must be identifiers”问题。This error can also occur if you are not following the marco rules
Like
#define 1K 1024 // Macro rules must be identifiers error occurs
Reason: Macro Should begin with a letter, not a number
Change to
#define ONE_KILOBYTE 1024 // This resolves
问题解决。
在avr studio 5.0及以上版本中SYMBOLS定义与avr studio 4 中不一样,不需要-D前缀。
页:
[1]