Perl extensions. 
Author Message
 Perl extensions.

Hi,

    At present we have developed a library in C language. We need to
write the perl extension so that
    the perl scripts can also access the library. Can anybody help me to
do this. I have already the library
    in .so form for the C funtions.

    Thanks,

Rgds,
Hari



Tue, 10 Apr 2001 03:00:00 GMT  
 Perl extensions.

Quote:
>     At present we have developed a library in C language. We need to
> write the perl extension so that
>     the perl scripts can also access the library. Can anybody help me to
> do this. I have already the library
>     in .so form for the C funtions.

Check the man pages: perlxs and perlxstut should be the most helpfull.

Hope this helps,

--
------------------------------------------------------------------------

                   I can take or leave it if I please
------------------------------------------------------------------------



Tue, 10 Apr 2001 03:00:00 GMT  
 Perl extensions.
Quote:

> Hi,

>     At present we have developed a library in C language. We need to
> write the perl extension so that
>     the perl scripts can also access the library. Can anybody help me to
> do this. I have already the library
>     in .so form for the C funtions.

You should take a look at

http://www.swig.org/

It is also described in "Advanced Perl Programming"
(http://www.oreilly.com/catalog/advperl/)

I have used it to make an existing C++-library available from Perl. It
is a great thing that saved me a lot of work!

Mathias
--
__________________________________________________________________


| Brueggeweg 54 / Dept SPN1   _( Y )_   Phone:  +49 421 457 4401 |
| 28305 BREMEN               (:_~*~_:)  Fax  :  +49 421 457 3177 |
| Germany                     (_)-(_)   Telex:  2 457 460        |
___________________________SIGSIG: Signature too long (core dumped)



Sun, 15 Apr 2001 03:00:00 GMT  
 Perl extensions.
Hi,

    Thanks for your help. I have the book Advanced Perl Programming. I
followed the way it explains, but the compilation is failing saying
incomaptible return value for the constant function which is created for the
#defines in my c header file. How can I cross that point.

-Hari

Quote:


> > Hi,

> >     At present we have developed a library in C language. We need to
> > write the perl extension so that
> >     the perl scripts can also access the library. Can anybody help me to
> > do this. I have already the library
> >     in .so form for the C funtions.

> You should take a look at

> http://www.swig.org/

> It is also described in "Advanced Perl Programming"
> (http://www.oreilly.com/catalog/advperl/)

> I have used it to make an existing C++-library available from Perl. It
> is a great thing that saved me a lot of work!

> Mathias
> --
> __________________________________________________________________


> | Brueggeweg 54 / Dept SPN1   _( Y )_   Phone:  +49 421 457 4401 |
> | 28305 BREMEN               (:_~*~_:)  Fax  :  +49 421 457 3177 |
> | Germany                     (_)-(_)   Telex:  2 457 460        |
> ___________________________SIGSIG: Signature too long (core dumped)



Sun, 15 Apr 2001 03:00:00 GMT  
 Perl extensions.

Quote:

> Hi,

>     Thanks for your help. I have the book Advanced Perl Programming. I
> followed the way it explains, but the compilation is failing saying
> incomaptible return value for the constant function which is created for
> the #defines in my c header file. How can I cross that point.

Do you mean the compilation of generated SWIG glue code? If so -- there
is a mailing list about swig:
        http://www.swig.org/mail.html

HTH, Mathias

--
__________________________________________________________________


| Brueggeweg 54 / Dept SPN1   _( Y )_   Phone:  +49 421 457 4401 |
| 28305 BREMEN               (:_~*~_:)  Fax  :  +49 421 457 3177 |
| Germany                     (_)-(_)   Telex:  2 457 460        |
___________________________SIGSIG: Signature too long (core dumped)



Mon, 16 Apr 2001 03:00:00 GMT  
 Perl extensions.
Hi,

    No, I mean the compilation of code generated by h2xs command.

-Hari

Quote:


> > Hi,

> >     Thanks for your help. I have the book Advanced Perl Programming. I
> > followed the way it explains, but the compilation is failing saying
> > incomaptible return value for the constant function which is created for
> > the #defines in my c header file. How can I cross that point.

> Do you mean the compilation of generated SWIG glue code? If so -- there
> is a mailing list about swig:
>         http://www.swig.org/mail.html

> HTH, Mathias

> --
> __________________________________________________________________


> | Brueggeweg 54 / Dept SPN1   _( Y )_   Phone:  +49 421 457 4401 |
> | 28305 BREMEN               (:_~*~_:)  Fax  :  +49 421 457 3177 |
> | Germany                     (_)-(_)   Telex:  2 457 460        |
> ___________________________SIGSIG: Signature too long (core dumped)



Mon, 16 Apr 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Perl ext: Where's a good place to get Perl extensions

2. create Perl Extension

3. Perl extension modules using C++

4. RFC: "CGI::Cache" perl extension

5. Perl extensions and C++

6. How Do You Handle Enumerations in Perl Extensions?

7. Help for create an perl extension from C lib

8. How:Installing perl extension??

9. PERL extensions for ODBC management

10. Perl extension exercisers?

11. Callback functions in a perl extension?

12. Postgres Perl Extensions

 

 
Powered by phpBB® Forum Software