This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0 wierdness
Finny Merrill wrote:-
> The thing is, I think the "cannot put preprocessor directives in macro
> args things only applies to stuff like:
>
> MACRO( blah,
> #ifdef foo
> bar
> #else
> baz
> #endif
> )
>
> but it's giving me the error for this line:
>
> (void)printf
> ("Usage: ircd %s[-h servername] [-p portnumber] [-x loglevel]
> [-t] [-H]\n",CMDLINE_CFG);
>
>
> where CMDLINE_CFG is a macro
Expanding to what, and what is the exact error message? In other words,
can you post a complete example?
Neil.