编译错误<command-line>:0:1: error: macro names must be identifiers的解决办法

编译时报错<command-line>:0:1: error: macro names must be identifiers

原因:makefile中出现了空的宏开关。-D${Variable}中的Variable为空了

检查makefile文件,应该将-D后面的参数修改为不为空

 

posted @ 2020-04-30 20:52  毛毛吃火锅不要锅  阅读(4879)  评论(0编辑  收藏  举报