SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question calling C/C++ function from perl

    calling C/C++ function from perl

    Hi,
    how do I call a compiled C/C++ function from perl ?
    Let say I have a C/C++ function:

    Code:
    *char func(char *ptr, int len) {
        ...
    return str;}
    Now i wonna call it from perl

  2. #2
    SitePoint Wizard bronze trophy KevinR's Avatar
    Join Date
    Nov 2004
    Location
    Moon Base Alpha
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try the www.perlmonks.com forum where there are many more experienced perl coders. I don't know how to do that myself.

  3. #3
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pickle is used to call codes between C++ and perl you can search it on CPAN site you will get the example ..


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •