cpp problem: directives may not be used inside a macro argument

walter harms wharms at bfs.de
Sat Nov 7 13:28:20 UTC 2009



Denys Vlasenko schrieb:
> On Friday 06 November 2009 13:09, walter harms wrote:
>> Hi,
>> i was compiling the latest version 15.2 for my system when the cpp found an error:
>>
>> procps/top.c:521:1: directives may not be used inside a macro argument
>> procps/top.c:520:17: unterminated argument list invoking macro "printf"
>> procps/top.c: In function `display_process_list':
>> procps/top.c:525: parse error before string constant
> 
> Fixing this way:
> 
>                 "  PID  PPID USER     STAT   VSZ %MEM"
>                 IF_FEATURE_TOP_SMP_PROCESS(" CPU")
>                 IF_FEATURE_TOP_CPU_USAGE_PERCENTAGE(" %CPU")
>                 " COMMAND");
> 

works for me.

....
  CC      procps/pidof.o
  CC      procps/ps.o
  CC      procps/top.o
  CC      procps/uptime.o
  CC      procps/watch.o
....


do you espect a patch ? Or will you do it by yourself ?

re,
 wh


More information about the busybox mailing list