Accessing C++ libraries from xs code.

2005-06-15 Thread nisha singla
Hello all I want to access C++ libraries( *.so) from Perl code. Is there is some particular function( or directive) which can be used in xs code to achieve this? Currently I have tried writing simple xs programs where the functions in another C file are accessed from the xs program by using a

Re: Accessing C++ libraries from xs code.

2005-06-15 Thread muppet
On Jun 15, 2005, at 5:16 AM, nisha singla wrote: I want to access C++ libraries( *.so) from Perl code. Is there is some particular function( or directive) which can be used in xs code to achieve this? http://www.johnkeiser.com/perl-xs-c++.html Key tricks: the O_OBJECT typemap and the

Re: Accessing C++ libraries from xs code.

2005-06-15 Thread muppet
On Jun 15, 2005, at 8:53 AM, nisha singla wrote: Thanks Scott. Actually I have been following John Keiser's document as well. The code compiles fine and I get the appropriate output. However it doesn't tell me how I can load an so ( shared library ) . Any pointers on that ? I guess i