Here's a copy of my Makefile.PL use 5.008; use ExtUtils::MakeMaker; $CC = 'g++'; $LD = 'g++'; $s = `uname`; $PLATFORM = ($s eq 'Linux') ? 'lnx86' : 'sun' ; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'KBool', ,'VERSION_FROM' => 'KBool.pm' ,'PREREQ_PM' => {} ,ABSTRACT => 'perl extention of C++ OpenAccess database' ,AUTHOR => 'Billy N. Patton <[EMAIL PROTECTED]>' ,'LIBS' => ["-L../kbool/SunOS -lkbool "] ,'DEFINE' => '' ,'INC' => "-I../kbool" ,'XSOPT' => '-C++' ,'CC' => 'g++' ,'LD' => 'g++' ,'TYPEMAPS' => ['typemap' ] );
After doing the make
cp KBool.pm blib/lib/KBool.pm
/apps/perl/5.8.0/bin/perl /apps/perl/5.8.0/lib/perl5/5.8.0/ExtUtils/xsubpp -C++ -typemap /apps/perl/5.8.0/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap -typemap typemap KBool.xs > KBool.xsc && mv KBool.xsc KBool.c
g++ -c -I../kbool -D_REENTRANT -fno-strict-aliasing -I/apps/perl/5.8.0/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/apps/perl/5.8.0/lib/perl5/5.8.0/sun4-solaris-thread-multi/CORE" KBool.c
My file comes out as KBool.c. THere is an explosion of errors. How can I tell get the Makefile.PL to know that it is a c++ file.
-- ___ _ ____ ___ __ __ / _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___ / _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \ /____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/ /___/ Texas Instruments ASIC Circuit Design Methodlogy Group Dallas, Texas, 214-480-4455, [EMAIL PROTECTED]