[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Calling C programs from MacPerl



On Mon, 1 Apr 1996, Gordon I Goodman wrote:

> Hi,
> 
> I want to call some C programs from a MacPerl program. In what form should
> the C program be? I guess I could make it a standalone application and
> send appleEvents to it but I'd prefer to keep it simpler. What is the simplest
> executable form of code that I can call from MacPerl? Does anyone have an
> example? Some guidance would be greatly appreciated.

You basically need to write an XCMD (like those used from HyperCard).  
MacPerl can then interface with it using MacPerl::LoadExternal.

There is also some work being done on shared libraries.  I believe the 
initial offering will be PPC-only.

John Peterson -- University Networking Services -- Brigham Young University
Internet: John_Peterson@byu.edu                       Phone: (801) 378-5007