SilvioCVdeAlmeida <[EMAIL PROTECTED]> writes:
>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;
>}


No it can't:

[EMAIL PROTECTED]:/home/p4work/mail> cd /tmp
[EMAIL PROTECTED]:/tmp> ned a.cc
[EMAIL PROTECTED]:/tmp>  g++ `perl -MExtUtils::Embed -e ccopts -e ldopts` a.cc
[EMAIL PROTECTED]:/tmp>

No errors at all. (This is perl5.8.4, SuSE 9.1, gcc 3.3.3 )

>
>
>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