We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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