3.0 wierdness

Zack Weinberg zack@codesourcery.com
Thu Dec 20 12:35:00 GMT 2001


On Thu, Dec 20, 2001 at 01:52:22PM -0600, 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
> 	)

Correct.

> 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

Please post a complete test case, the exact command line you use, and
the exact error messages you receive.

zw



More information about the Gcc mailing list