cpp gone in 4.0 (Was: cpp vs. m4 for .s files)

Dave McCracken dcm at baldur.dell.com
Tue May 7 07:54:51 AEST 1991


urban at cbnewsl.att.com (john.urban) writes:

>In article <May.3.17.53.56.1991.10927 at romulus.rutgers.edu> plona at romulus.rutgers.edu (Lawrence Plona) writes:
>>Although this has nothing to do with which is the better pre-processor,
>>the 3.2 man page for cpp says not to use it because cpp is part of cc
>>and is subject to change without notice. The cpp man page does not
>>appear in the 4.0 documentation.

>This is because cpp is completely gone for UNIX System V Release 4.0.  The
>C Pre Processor is now built into cc - no longer a separate command.  Run cc -P
>to run just the preprocessor part of cc.

This is true, but cpp is also shipped in /usr/ccs/lib/cpp because the
regular preprocessor changed the way it handles some constructs.  If
you have code that uses cpp on non-C files, you need to use this 
instead of cc -P or cc -E, since the other way will fail (see gdb
or emacs for an example of this).


--
Dave McCracken      dcm at dell.dell.com      (512) 343-3720
Dell Computer       9505 Arboretum Blvd    Austin, TX 78759-7299



More information about the Comp.unix.internals mailing list