RE: how to embed c code in perl programs

2004-08-13 Thread Thomas Bätzler
Karthick <[EMAIL PROTECTED]> asked:
> Is it possible to embed C/C++ codes into perl programs. 
> (Actually I want to make use of an API, that could be used 
> with with C).

It's not exactly simple, but with h2xs you can create a Perl
module out of standard C libraries. Well, h2xs creates the
module framework and also takes a stab at creating the proper
glue code to access your API, but probably you'd have to tweak
it a bit to get it to work.

The other alternative would be Inline::C which allows you to
embed C code in your program.

Both alternatives require the proper build environment for your
Perl version.

HTH,
Thomas

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: how to embed c code in perl programs

2004-08-13 Thread NYIMI Jose \(BMB\)
> -Original Message-
> From: Karthick [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 13, 2004 9:17 AM
> To: [EMAIL PROTECTED]
> Subject: how to embed c code in perl programs
> 
> 
> Hi,
> Is it possible to embed C/C++ codes into perl programs. 
> (Actually I want to make use of an API, that could be used 
> with with C). Thanks in Advance, Karthick.S

Hint:
Check if following modules can help you:
Inline::C
Inline::CPP
http://search.cpan.org/search?query=Inline%3A%3AC&mode=module

HTH,

José.


 DISCLAIMER 

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: how to embed c code in perl programs

2004-08-13 Thread David Dorward
On 13 Aug 2004, at 08:16, Karthick wrote:
Is it possible to embed C/C++ codes into perl programs. (Actually I 
want to make use of an API, that could be used with with C).
You could try XS  or 
Inline::C . They both 
look like they should do the job, but I have to confess I haven't used 
either.

--
David Dorward
 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]