Hello,

Another ExtUtils::Embed question:

Last weekend I've posted a question about embedding Perl in a
C++ library. The compiling error is easily reproduced by just:

$ g++ `perl -MExtUtils::Embed -e ccopts -e ldopts` a.cc

// a.cc
#include <EXTERN.h>
#include <perl.h>
int main(int a, char** b, char** c) {
    return 0;
}


That goes right if changed into: gcc aplied to C file a.c with
the same contents.

I've posted as bug, as adviced (#29966).

The error is about C vs. C++ linkage. I can try to help, if
someone give me a path to it, as I'm new in perl-xs, and XS
itself.


Thank you.

Silvio

Reply via email to