Thank you for the lead, we will check import() and install().  I did check
that the compiled object file was created and is moved to a subdirectory
under /usr/lib/perl5/....  as I would expect.  I shall lookup your patch
suggestion later this weekend, or at latest Monday morning, maybe the
installer just can't find the binary.

We did get the compile to work by changing the values assigned to the
flags such as CC  from gcc to g++ and adjusting our C file to be a .cpp
file.  We also adjusted the configs for MakeMaker so that it would use the
g++ compiler when it autogenerated the Makefile.  
Eric

-----Original Message-----
From: Eric Wilhelm <[EMAIL PROTECTED]>
To: inline@perl.org
Date: Fri, 22 Sep 2006 15:43:23 -0700
Subject: Re: C to CPP conversion

> # from Eric Mesdag
> # on Friday 22 September 2006 12:32 pm:
> 
> >  Invalid attempt to install an Inline module using the 'CPP' language
> >  Only C based modules are currently supported
> 
> I get a completely different error.
> 
>   Error. You have specified 'CPP' as an Inline programming language.
> 
>   I currently only know about the following languages:
>       C, Foo, PDLPP, PYTHON, Pdlpp, Python, foo, pdlpp, py, python
> 
> But I haven't been using Inline::CPP lately.
> 
> If I hack on the _Inline/config file, it gets me as far as:
> 
>   The NAME 'CAD::DXF::Dime' is illegal for this Inline extension.
>   The NAME must match the current package name:
>     CAD::DXF
> 
> Which is itself a bit of a show-stopper here, since the Inline::CPP way
> of doing things is to append the C++ package to the current package.
> 
> >What do we look at to convince inline to support install of C++
> > modules? We manage to convince inline to compile for c++  but it
> > won't install.
> 
> I do remember an old patch to Inline::C that fixes a trip-up on 
> Inline::CPP.  This may have nothing to do with your issue, but anyway.
> 
> -       $o->{ILSM}{MAKEFILE}{INC} = "-I$FindBin::Bin";
> +       ($o->{ILSM}{MAKEFILE}{INC} =~ m/-I$FindBin::Bin/) or
> +               ($o->{ILSM}{MAKEFILE}{INC} = "-I$FindBin::Bin");
> 
> As for where to go now...  Look at Inline.pm import() and install()
> 
> --Eric
> -- 
> "Everything goes wrong all at once."
> --Quantized Revision of Murphy's Law
> ---------------------------------------------------
>     http://scratchcomputing.com
> ---------------------------------------------------


Reply via email to