tags:

views:

96

answers:

2

I am totally new to SWIG interfaces and how to use this with C and Perl.

It will a great help to me, if someone explains about using Perl and C with SWIG.

+2  A: 

May be these will help you:

NAVEED
can you give me a link for Perl and C using SWIG ?? pls
Senthil kumar
@Senthil: Above links have examples.
NAVEED
+1  A: 

Why don't you take a look at Inline::C? It has all the power of SWIG but it is so much easier to get up and running with it.

mobrule
well, actually i dont know which is the best way. Let me look at every possibility. If Inline::C works fine, then i will stick to it
Senthil kumar
Waaait. Inline::C is the devil when it comes to deployment. It's not impossible, but it's damn inconvenient. If what you're writing is to run on a machine other than a development machine, I suggest you stay away from it.
tsee
The downside to `Inline::C` is that the machine that runs the code must have a C compiler. I have also had problems with corrupt `Inline::C` caches (this has occurred when several programs try to use a module that uses `Inline::C` at the same time and the cache didn't exist yet). I find `Inline::C` is great for prototyping, but XS is much better for production.
Chas. Owens