On Mon, 23 Feb 2004, Randy W. Sims wrote: > On 02/22/04 23:16, xern wrote: > > Hi, > > I'm building a wrapper for some C++ module. Things goes fine until > > this happens. Could anyone help me out? I had no experience with > > binding XS and C++ together before. > > > > Thanks > > > > g++ -L/usr/local/lib lib.o /usr/lib/perl/5.8.2/CORE/EXTERN.h > > /usr/lib/perl/5.8.2/CORE/INTERN.h /usr/lib/perl/5.8.2/CORE/XSUB.h > > Hmm, this is obviously wrong. Header files should not be passed to gcc > like this. Can we see your Makefile.PL? > > Randy.
Here you go. WriteMakefile( NAME => 'My::LIB' VERSION_FROM => 'LIB.pm', PREREQ_PM => {}, ($] >= 5.005 ? (ABSTRACT_FROM => 'LIB.pm', AUTHOR => 'xern <[EMAIL PROTECTED]>') : ()), LD => 'g++', CC => 'g++', LIBS => [''], OPTIMIZE => '-O2', DEFINE => '', INC => '-I./include', OBJECT => join(q/ /, map{'./mylib/'.$_} @object_files), 'XSOPT' => '-C++', ); ExtUtils::MakeMaker's version is 6.17 with perl 5.8.2. I know header files should not be passed to gcc like this. I'm just curious how this could happen.