how to run C function library?

My perl script were implemented on Linux system.  I would like my script run the static library  which was developed by using C language and the developer gave me only the static library file (file.o).
Could I invokel the function via perl script?
unnAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
dalehendConnect With a Mentor Commented:
This online manual for PerlXS has examples to show how
to interface to C library:
http://linusp.usp.br/ftpmaster/CPAN/doc/manual/html/pod/perlxs.html
0
 
prakashk021799Commented:
You can also use SWIG (Software Wrapper and Interface Generator) available at http://www.swig.org.

All you need to do is to write a C header file (.h) describing the interface to the library and SWIG will take care of the rest.
0
All Courses

From novice to tech pro — start learning today.