in reply to Makefile.pl for a C++ XS module... How to make windows happy?

I don't have a Linux box handy, but Config.pm tells me that $Config{cpp} would be "the" C++ compiler to use:

Q:\>perl -MConfig -e die$Config{cpp} cl -nologo -E at -e line 1.
and on Solaris :
perl -MConfig -edie\$Config{cpp} cpp at -e line 1.

(for the Sun delivered perl 5.005_03)

Replies are listed 'Best First'.
Re: Re: Makefile.pl for a C++ XS module... How to make windows happy?
by JayBonci (Curate) on Feb 27, 2004 at 10:41 UTC
    Great, that's what I needed to know. Thanks =)


        --jaybonci
Re: Re: Makefile.pl for a C++ XS module... How to make windows happy?
by Anonymous Monk on Feb 28, 2004 at 22:32 UTC
    > Config.pm tells me that $Config{cpp} would be "the" C++ compiler to use:

    Wrong, most wrong. $Config{cpp} is the C preprocessor. There is no Config.pm variable for a C++ compiler.

    In most places you can just use $Config{cc}, though. The compilers are the same, really, or at least the frontend recognizes from the source code filenames (use .cpp for C++) which backend to use.