[Gllug] bored programmer needs help

Ian Norton bredroll at darkspace.org.uk
Thu Dec 18 19:04:30 UTC 2003


On Tue, Dec 16, 2003 at 10:55:12PM +0200, Dave van Zijl wrote:
> > 1. is there any way in perl i can call functions that are in a C library
> somwhere?
> > (like native methods in java) without all the bother of re-compiling perl
> etc.
> 
> Sure, we use SWIG (http://www.swig.org/) which basically creates a Perl
> wrapper (.pm) around a .so and you specify which methods to make available
> to the .pm. It has a few problems (doesn't handle certain overloaded methods
> very well - eg when the only difference is the data type of parameter
> expected) but is quite decent
> 
Thanks,

Ill give it a swig,

Ian

> > 2. anyone reccomend a C book to use while learning.
> 
> "The C Programming Language" 2nd Ed by Brian Kernighan and Dennis Ritchie is
> an excellent place to start I think :-)
> 
> Dave
> 
> -- 
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS dpu s--: a-- C++++ UL++ P+++ L+++ E--- W-- N+ o K w---
O M-- V-- PS++ PE-- Y+ PGP+ t+++ 5++ X++ R+++ !tv b DI D----
G++ e+ h++ r++ y+++
------END GEEK CODE BLOCK------
----- Message of the Hour ------
Moooo :-)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list