perl.inline...Re: AutoLoader issues with Inline::CPP by Sisyphus- June 18, 2008 ----- Original Message ----- From: "Erik Hollensbe" <erikhollensbe.org>..> Technically I have a working product at this point, however I&39;d> really prefer to not use a heredoc. I imagine it&39;s something very subtle> (e.g., I snipped the POD in the document but there is an __END__ in there,> maybe that&39;s confusing Inline). I&39;ve got some other matters to attend to> today and will give it a solid try in a few hours.>A couple of other things (which you...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3654.html Re: AutoLoader issues with Inline::CPP by Erik Hollensbe- June 18, 2008 On Wednesday 18 June 2008 06:34:26 Sisyphus wrote:> There&39;s another subtle difference.> I replaced:>> const char version(void)>> with:>> char version()Yep, accounted for, KDE::versionString() returns const char , but that was solvable with a cast.Just to be clear, in all situations it&39;s compiling cleanly, it&39;s just not resolving the method when a heredoc isn&39;t used.> > So I tried it out, and &39;lo and behold I get that error when I compile my> >.http://www.nntp.perl.org/group/perl.inline/2008/06/msg3653.html Re: AutoLoader issues with Inline::CPP by Sisyphus- June 18, 2008 ----- Original Message ----- From: "Erik Hollensbe" <erikhollensbe.org>..>> package MIME::KDE;>> use warnings;> use strict;> use version qw(qv);>> our $VERSION = qv(&39;0.01&39;);> our $CODE = "";>> use File::Basename qw(dirname);>> BEGIN > open(CPP, dirname(__FILE__).&39;srcmimelib.cpp&39;)> die "Couldn&39;t locate C++ stub: $!";>> local $ = undef;>> $CODE = <CPP>;> ...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3652.html Re: AutoLoader issues with Inline::CPP by Sisyphus- June 18, 2008 ----- Original Message ----- From: "Erik Hollensbe" <erikhollensbe.org>..>> I thought it was interesting that you could get it to work and I couldn&39;t; > the> only difference is that I was referencing an external file and you were > using> a heredoc.There&39;s another subtle difference.I replaced:const char version(void)with:char version()Did you pick up on that (I changed it because it was necessary ... for me, anyway ... I don&39;t think it compiled...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3651.html Re: AutoLoader issues with Inline::CPP by Erik Hollensbe- June 18, 2008 On Tuesday 17 June 2008 21:06:32 Sisyphus wrote:> However, both Inline::CPP and InlineX::CPP2XS have no problem with the> following form of the version() function:Sorry for all the extra replies, but in implementing my workaround, I got the bug again. :)This one strikes me as especially curious. As you can see below, the code is read into a global which Inline::CPP (should be) treating as a string. The method resolution issue crops up again here.Note: If I paste the code out of the file...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3650.html Re: AutoLoader issues with Inline::CPP by Sisyphus- June 18, 2008 ----- Original Message ----- From: "Erik Hollensbe" <erikhollensbe.org>..> I never use> autosplitAutoLoader in modules I write.. Hence the error was fairly > cryptic> to me.I&39;d call it "nonsensical" rather than "cryptic" :-)Not sure where that "autosplit" error originates, but here&39;s a fairly straightforward demo of the &39;.al&39; error and how to avoid it:----------------------------C:_32pscrpt>perl -MDigest::MD5 -e...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3649.html Re: AutoLoader issues with Inline::CPP by Erik Hollensbe- June 18, 2008 On Tuesday 17 June 2008 21:06:32 Sisyphus wrote:> However, both Inline::CPP and InlineX::CPP2XS have no problem with the> following form of the version() function:I missed this on my first pass...Like I said in my original email, I had already tried it without the namespaces.I thought it was interesting that you could get it to work and I couldn&39;t; the only difference is that I was referencing an external file and you were using a heredoc.So I tried it out, and &39;lo and behold I get..http://www.nntp.perl.org/group/perl.inline/2008/06/msg3648.html Re: AutoLoader issues with Inline::CPP by Erik Hollensbe- June 18, 2008 On Tuesday 17 June 2008 21:06:32 Sisyphus wrote:> ----- Original Message -----> From: "Sisyphus" <sisyphus1optusnet.com.au>> .> .>> > ---------------------------------------------> > package MIME::KDE;> > use warnings;> >> > use Inline CPP => <<&39;EOC&39;;> >> > include <iostream>> >> > namespace MIME > > namespace KDE > > const char version(void) > > ...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3647.html Re: AutoLoader issues with Inline::CPP by Sisyphus- June 17, 2008 ----- Original Message ----- From: "Sisyphus" <sisyphus1optusnet.com.au>..> ---------------------------------------------> package MIME::KDE;> use warnings;>> use Inline CPP => <<&39;EOC&39;;>> include <iostream>>> namespace MIME > namespace KDE > const char version(void) > return "my version is 0.01";> > > > EOC>> $z = MIME::KDE::version();> print $z,...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3646.html Re: AutoLoader issues with Inline::CPP by Sisyphus- June 17, 2008 ----- Original Message ----- From: "Erik Hollensbe" <erikhollensbe.org>To: <inlineperl.org>Sent: Wednesday, June 18, 2008 2:15 AMSubject: AutoLoader issues with Inline::CPP> Greetings folks...>> I&39;m having a problem with an Inline::CPP module I&39;m writing. It seems that> it&39;s trying to local an autosplit routine in the _Inline dir that doesn&39;t> exist after Inline does its initial magic.>> Here&39;s the actual error:>> Can&39;t locate...http://www.nntp.perl.org/group/perl.inline/2008/06/msg3645.html |