in reply to Re^3: Problem on XS
in thread Problem on XS module loading

It seems the problem is g++ modified the symbol name of perl API provided by perl headers, so I tried to surround perl headers within extern:
extern "C" { #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "ppport.h" #include <stdio.h> }
But this does not help at all...

Replies are listed 'Best First'.
Re^5: Problem on XS
by Anonymous Monk on Oct 28, 2011 at 23:38 UTC
    Well, maybe you should not be using g++
      My library is written in C++. I have to use g++, otherwise it won't compile.

        My library is written in C++. I have to use g++, otherwise it won't compile

        Don't know what to tell you.

        I've see perl-XS-tensions that use g++, i've seen some that don't, both compile....