>>>>> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes:

    Autrijus> You may wish to use Parrot_call_sub's "SS" form, where
    Autrijus> you pass in a string and get back a string.  Something
    Autrijus> like this:

    Autrijus>     my $interp = Parrot_new(undef);

    Autrijus>     # ... load a .pir file or some other code into
    Autrijus> $interp ...

    Autrijus>     my $code_pmc = Parrot_find_global( $interp,
    Autrijus> const_string("Namespace"), const_string("sub_name"), );

I'm having a problem with this.
For Parrot_find_global, I'm specifying global.h as one of the header
files which must be read to generate definitions from.
But this is failing, apparently because PMC isn't defined.

So I tried to find where PMC was defined - it looked like pobj.h to
me, but if I include that, I run into trouble with size_t (?!) and
DPOINTER (at least).

What headers do I need to read for the parrot_find_global call?
-- 
Colin Adams
Preston Lancashire

Reply via email to