Try to: #include <list> in your .xs file, and you'll get the following
error:
In file included from /usr/include/g++-2/list:34,
from Coba.xs:14:
/usr/include/g++-2/stl_list.h:119: `template <class T, class Alloc =
class alloc> struct Perl_list' redeclared as different kind of symbol
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:212: previous declaration
of `struct OP * Perl_list(struct OP *)'
make: *** [Coba.o] Error 1
Is there any way to avoid this Perl_list conflict?
Currently I'm thinking of adding a C layer on top of the c++ library
(which makes use of the stl_list), but this sounds to be an
uninteresting idea.
rgds,
Edwin.