Hi,
I get a error C141: syntax error near ';'
with the following code:
struct process { struct process *next; const char *name; }; #define AMACRO(name, strname) \ struct process name = { NULL, strname }; AMACRO(my_process, "HELLO");
This seems to compile neatly on MS VC++ and gcc.
Regards, Umar
Your macro definition already includes a semicolon, and you put another one right after it. Two semicolons in a row are illegal outside of a function.
- mike
www.8052.com/.../read.phtml