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

Re: [MacPerl] Help needed with xsubpp



Tom Utiger <tom@base3.com> writes:
>I am trying to extend perl on the mac so that we may run some of our demo
>programs.  The extentions currently work on windows 95/nt.  The extentions
>have to do with 3d graphics.  I am trying to run xsubpp and have it spit
>out some c++ code.

Fine.

>on windows at the command line we use:
>
>	perl /lib/extutils/xsubpp  stuff.xs > stuff.cpp
>
>what do i do on the mac?

First of all, I would *strongly* recommend that you consider doing the build
in MPW. I think you'll be saving yourself a lot of trouble in the long run.
dmake is available at ftp://err.ethz.ch/pub/neeri/Misc/

Apart from that, the link problems with the Perl_ symbols you're experiencing
are caused by not linking with Perl itself. The easiest way to achieve that is
to simply link your shared library with a PowerPC or fat version of the
application or MPW tool.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_