Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Mandriva and C++

by syphilis (Archbishop)
on Jul 24, 2007 at 17:47 UTC ( [id://628538]=perlquestion: print w/replies, xml ) Need Help??

syphilis has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Here is a simple test perl (C++) distro that works fine for me on Windows, but not on mdk-9.1 (linux) with either perl 5.8.8 or 5.9.3.

By the looks of the thread that starts at http://www.mail-archive.com/inline@perl.org/msg03304.html this is a bug in perl.

I'm wondering whether that basic test distro works on mandriva with the latest bleadperl. If so, the matter can probably be put to rest ... if not then I should probably investigate further.

I guess I should really install the latest bleadperl myself and test it out - and I'll probably do that tomorrow. In the meantime, I'm interested to hear (of the success or otherwise) from anyone who cares to run that simple test distro ... along with any speculations as to whether the problem lies with perl or whether it lies with the source itself.

IIRC, the Makefile.PL assumes that g++ will be used as the C++ compiler ... otherwise the Makefile.PL may need to be amended.

Cheers,
Rob
Update: Ouch ... that's a far more complex account than what is needed. A simple "hello world" Inline::CPP script demonstrates the same problem. I'll build the latest blead and see what effect that has.

Update 2: No problem with the latest bleadperl, so the issue has obviously been fixed ... which is a relief. (Sorry for the noise.)

Replies are listed 'Best First'.
Re: Mandriva and C++
by Steve_p (Priest) on Jul 25, 2007 at 13:41 UTC

    There was an idea around for quite a while that Perl could compile with a real C++ compile (VC++ doesn't count, more on this in a moment) for quite some time. However, we were quite wrong. After some heavy lifting, we do have Perl compiling with various C++ compilers, such as g++, Sun CC, HP-UX aCC, and Intel icpc. 5.10.0 and 5.8.9 should have these fixes.

    The illusion that we could compile with C++ compilers was pertetuated by compilers such as VC++, Borland C++, and Intel C++. The problem is that these compilers drop into C mode if a file has a .c extension.


    Test your modules with bleadperl!

      rsync -avz rsync://public.activestate.com/perl-current/ .
      ./Configure -des -Dusedevel -Dprefix=/path/to/test/perl
      make test
      make install
    

    Now, please test you modules! If you have test failures that don't happen with Perl 5.8.8, send a simplified test case to

    perlbug at perl.org

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://628538]
Approved by Corion
Front-paged by Argel
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-23 18:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found