on 04-11-13 04.45, Chris Nandor ([EMAIL PROTECTED]) wrote the following:

> At 2:11 +0100 2004.11.13, Tommy Nordgren wrote:
>> I'm learning MacPerl, and is currently trying to find out how to call
>> C modules from MacPerl.
>> I've generated the h2xs tool from h2xs.PL, and generated a test project
>> Mytest.
>> However, when I try perl Makefile.PL to generate a makefile under the MPW
>> environment, I get a makefile that is incompatible with the MPW make tool.
>> How can I fix this?
> 
> The way I do it is to set up the MacPerl build environment as per:
> 
> http://dev.macperl.org/?build
> 
> And from there I just drop in an XS module and build.  Kinda messy, but
> works for me.  Thomas Wegner has an XS tutorial, however, which might be
> better:
> 
> http://usemacperl.esmartweb.com/
    It would be very useful if I could set things up so that it's possible
to do a build for ANY Perl dialect that supports dynamic linking of
extensions. The major bug in Makefiles generated for Mac by the MakeMaker
utility called from MakeFile.PL, are that dependencies are specified
incorrectly with ':' instead of the character 'Ÿ' (option-f) which is the
correct syntax for MPW Make. I wonder wether it's possible to fix this
problem by editing the file MM_MacOS.pm.
    Also, I wonder where I can find documentation of using standard streams
from extensions in C and C++
> 
> Of course, most of us now use Mac OS X, where building is much simpler.  :-)
> 
    Probably is, at least if you've really got a MacOS X capable computer. I
don't.

Tommy Nordgren,
<[EMAIL PROTECTED]>

Reply via email to