Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!execu!sequoia!uudell!bigtex!dell!baldur!dcm From: dcm@baldur.dell.com (Dave McCracken) Newsgroups: comp.unix.internals Subject: Re: cpp gone in 4.0 (Was: cpp vs. m4 for .s files) Message-ID: Date: 6 May 91 21:54:51 GMT References: <16031@smoke.brl.mil> <1991May3.012859.14305@NCoast.ORG> <1991May6.162351.1521@cbnewsl.att.com> Sender: @dell.dell.com Distribution: na Organization: Dell Computer Corporation, Austin, Texas 78759-7299 Lines: 22 urban@cbnewsl.att.com (john.urban) writes: >In article plona@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@dell.dell.com (512) 343-3720 Dell Computer 9505 Arboretum Blvd Austin, TX 78759-7299