9 years, 8 months ago.

compile err 18

I defined a macro like this:

  1. define MULADDC_INIT \ asm( "ldr r0, %0 " :: "m" (s)); \ asm( "ldr r1, %0 " :: "m" (d)); \ asm( "ldr r2, %0 " :: "m" (c)); \ asm( "ldr r3, %0 " :: "m" (b));

There is a compile err where the macro be called:

Error description: Expected a ")" "MULADDC_INT"

Error Number: 18

Why?

1 Answer

9 years, 8 months ago.

This compiles fine for me.

#define MULADDC_INIT \ asm( "ldr r0, %0 " :: "m" (s)); \ asm( "ldr r1, %0 " :: "m" (d)); \ asm( "ldr r2, %0 " :: "m" (c)); \ asm( "ldr r3, %0 " :: "m" (b));

Maybe you have an error before or after the #define that the compiler is picking up.