I have the following line in my code,

#define FEATURE(select)     feature_structure. ## select ## .member
  ...
   FEATURE(test);

and when I run it through the compiler (gcc 3.2.2 on Linux x86) I get the
_warning_

  file.c:111:32: warning: pasting "." and "test" does not give a valid
preprocessing token
  file.c:111:32: warning: pasting "test" and "." does not give a valid
preprocessing token

If I look at the preprocessor output, (gcc's -E option) it produces what I'm
hoping for, although I'd like to avoid the warning.  Suggestions?

- Jamie

Reply to "gmane.linux.c-programming" or me directly.




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to