Skip to contentSkip to conversation

perl wrapper for C

DISCUSSION Anshuman S. Rawat 3 participants 3 messages Jul 27, 2004 – Jul 29, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
This might be the wrong list for this question -
I have a C module for which I need to build a perl wrapper. Does anyone have any pointers on how to go about that? (the C module is itself dependent on a whole lot of other modules).

Absolutely any help would be appreciated!

Thanks.

#1 lore raw

swig

http://www.swig.org/

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is primarily used with common scripting languages such as Perl, Python, Tcl/Tk, and Ruby, however the list of supported languages also includes non-scripting languages such as Java, OCAML and C#. Also several interpreted and compiled Scheme implementations (Guile, MzScheme, Chicken) are supported. SWIG is most commonly used to create high-level interpreted or compiled programming environments, user interfaces, and as a tool for testing and prototyping C/C++ software. SWIG can also export its parse tree in the form of XML and Lisp s-expressions. SWIG may be freely used, distributed, and modified for commercial and non-commercial use.

----- Original Message -----
From: "Anshuman S. Rawat" <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 27, 2004 6:41 PM
Subject: perl wrapper for C

Quoted 3 lines

Hi,
This might be the wrong list for this question -
I have a C module for which I need to build a perl wrapper. Does anyone

have

Quoted 1 line

any pointers on how to go about that? (the C module is itself dependent on

a

Quoted 9 lines

whole lot of other modules).

Absolutely any help would be appreciated!

Thanks.

-
To unsubscribe from this list: send the line "unsubscribe

linux-c-programming" in

Quoted 5 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

This incoming email to UWE has been independently scanned for viruses and

any virus detected has been removed using McAfee anti-virus software

Quoted 2 lines
#2 lore raw
In reply to Anshuman S. Rawat
Quoted 2 lines · Anshuman S. Rawat

This might be the wrong list for this question - I have a C module for which I need to build a perl wrapper.

Try the module Inline::C from CPAN.

Regards,
Christoph

Signature · 4 lines
``There's no dark side of the moon, really
Matter of fact, it's all dark''

--Pink Floyd