[OpenAFS-devel] problem with cpp directives in concatenation...

Neulinger, Nathan nneul@umr.edu
Wed, 13 Jun 2001 11:07:18 -0500


Just started testing with gcc-3.0 snapshot for some of the sources I'm
working on, and noticed that it doesn't like this:

                printf ("Usage: ptserver [-database <db path>] "
#ifndef AFS_NT40_ENV
                        "[-syslog[=FACILITY]] "
#endif
                        "[-p <number of processes>] [-rebuild] "


gives this error:

ptserver.c:161:1: directives may not be used inside a macro argument
ptserver.c:161:1: unterminated argument list invoking macro "printf"
ptserver.c:162: parse error before string constant

so, all those are going to need changed.

What's really bizarre is - since when was printf a macro?

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216