NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cpp in base?

On Tue, Jun 04, 2013 at 02:26:55PM +1000, Malcolm Herbert wrote:
> quick question - should I be able to use /usr/bin/cpp -E without having
> installed the compiler binary set? So far on this 5.1.2 host I've got
> the base and etc sets installed and when trying to use cpp as a pre-processor
> only, I get the following:
> |deimos[~/tmp/cpp] 249v>: cpp -E ./blah
> |cpp: error trying to exec 'cc1': execvp: No such file or directory
> Is this intentional?  I'd prefer not to install the compiler set if I 
> don't have to as this is a host with limited disk space.

For POSIX, the C preprocessor is invoked via the compiler (c89 or C99)
and is not defined as a standalone utility.

You have devel/ucpp in pkgsrc that seems to be a C89 compliant
standalone C preprocessor.

        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

Attachment: pgp596CUf_w7Y.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index