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

so there may be some magics?

IIRC, last time you asked about XS/C++ you got links to several working examples, which show

#ifdef __cplusplus extern "C" {

So what do you have?

Replies are listed 'Best First'.
Re^4: Problem on XS
by llancet (Friar) on Oct 28, 2011 at 08:18 UTC
    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...
      Well, maybe you should not be using g++
        My library is written in C++. I have to use g++, otherwise it won't compile.