This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: preprocessor directive in 3.2 does not ignore "undefined" directives


"x z" <hzmonte@hotmail.com> writes:

> I have a .c file that has statements like this:
> #node "node.file"
> 
> When I use the gcc 2.8.1 preprocessor gcc -E, the output keeps this
> statement intact.
> When I use the gcc 3.2.2 preprocessor gcc -E, it complains about
> Invalid preprocessor directive.

The manual for gcc 3.2.3's preprocessor is here:
http://gcc.gnu.org/onlinedocs/gcc-3.2.3/cpp/

> 
> How can I make the gcc 3.2.2 preprocessor keep this statement intact
> in the output file?

The C preprocessor is only intended for use with C code. 
    '#node "node.file"' is not C. So I don't think what you are trying
    to do is supported, but if you read the manual you may find a way
    to do it.

> 
> Please respond to this e mail address.  I have no idea whether
> gcc-help@gcc.gnu.org is a mailing list that can be subscribed by
> users, and if so, how.  Thank you.

You can subscribe to gcc-help at:

http://gcc.gnu.org/ml

You can also read the archives of gcc-help from there.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]