<命令行>:1:1:错误:宏名称必须是标识符

Tin*_*ark 5 linux command-line gnu-make

我是Linux和makefile的新手.我有一个生成.a文件的makefile.当我运行makefile时,我收到以下错误.我不知道代码的哪一部分,错误发生.

[oracle@dyl02703app004 erm]# make -f erm_make_ida all
.... Compiling /home/wholesale/children/dev5/comps/erm/obj/ermparseyac.c
cc  -g                         -DANSI -D -DTRACE_ON -DIDA_VERSION='"ISP-RG-V5.10.7GEN2A"' -DNO_MCP -DBUILDING_ERP  -I/home/wholesale/children/dev5/comps/erm/include -I/home/wholesale/children/dev5/comps/erm/src -I/home/wholesale/children/dev5/comps/erm/module_test  -I/home/wholesale/children/dev5/comps/erm/include  -I/home/wholesale/children/dev5/comps/cfm/include    -c /home/wholesale/children/dev5/comps/erm/src/ermparseyac.c -o /home/wholesale/children/dev5/comps/erm/obj/ermparseyac.o
<command line>:1:1: error: macro names must be identifiers
make: *** [/home/wholesale/children/dev5/comps/erm/obj/ermparseyac.o] Error 1
Run Code Online (Sandbox Code Playgroud)

有什么建议...?

Ign*_*ams 18

你有一个-D没有名字的旗帜.查看您的makefile以查看导致它的原因.