I haven't done this in years, but I agree that the simplest solution is to provide a C-compatible interface for the C++ code (such as using "export "C"") and call that from Perl. Note, however, that for it to work (depending on your system details) you may need to be using a perl executable built with the same compiler as the C++ code.
-- Jason Elbaum On Sun, Aug 30, 2009 at 5:01 PM, Pinkhas Nisanov <[email protected]> wrote: > > On Sun, Aug 30, 2009 at 8:18 AM, Yossi > Itzkovich<[email protected]> wrote: > > Does someone here in the list have experience with calling C++ functions > > from Perl? > > I did it some years ago, I just build C based library that call C++ library, > then integrate it with XS. > > thanks > Pinkhas Nisanov > _______________________________________________ > Perl mailing list > [email protected] > http://mail.perl.org.il/mailman/listinfo/perl _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
