Thank you Thomas!

Thomas Wegner wrote on 01.1.9 1:04 PM: 
>>I am trying to make the ports available and struggling with
>>CFM68K.
>>
>>I cannot make CFM68K version of the shared libraries due to bunch
>>of link errors complaining that Perl_croak, Perl_safemalloc etc.
>>are not defined.
>>
>>I am using the PerlStub as distributed with the MacPerl source,
>>but it seems to be a PPC one, and not suitable for CFM68K. I do
>>not have link errors at building PPC shared libraries.
>>
>>Is there any CFM68K PerlStub or can I create one? Or, any way
>>around?
>>
>>
>>--
>>Takeshi
>
>Hi Takeshi,
>
>I have successfully built a CFM68K version of the Date::Calc module 
>with the distributed PerlStub library, so this is not the problem. I 
>don't know if you are using CodeWarrior or MPW. For CW, I refer you 
>to the Macintosh Perl XS Tutorial [1]. For MPW, you should also take 
>a look at the tutorial; you will find the following hint:
>
>You *must* bracket your declarations in the XS file with appropriate 
>#import pragmas. Here's an example:
>

[snip]

>For me, it worked to bracket the three standard XS includes. All 
>these "unresolved reference" link errors for the Perl symbols should 
>disappear. See the XS tutorial for more information.
>

I had read the document before, but missed this bracketting part. 
 I am using CodeWarrior and it was mentioned in the MPW part, so 
I just had skipped it.

It worked with CW, too.


>Hope that helps.

It sure did!

--
Takeshi

Reply via email to