Re: Embedding interface to PMCs

[email protected] ("Vladimir Lipskiy")
Newsgroups perl.perl6.internals,perl.ponie.dev
Message-ID <007801c37892$e6b66fa0$e89d943e@87w5ovc8gmxcahy>
----- Original Message -----
From: "Arthur Bergman" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Thursday, September 11, 2003 7:14 PM
Subject: Embedding interface to PMCs


> Hi,
>
> Is there any documentation, or code I can read to figure out how use
> PMCs in embedded mode? I tried to just include parrot/parrot.h in sv.c
> but that results in a million (or so ;) errors ...

Ha-ha-ha. The same thing. To be more exactly, I get like a half of million
errors(anyway it's still less than you get), when I try to embed parrot in a
c++ application. The reason of that is that the parrot headers don't contain
the C linkage specification and there is an awful lot of typedef struct a *a
declarations that don't please C++ compilers. I ain't sure (when I proposed
to document the idea of Juergen Bommels to include the

extern "C" {

specification () in each header in pdd7_codingstd, no body had replied),
but maybe Parrot isn't going to have support for C++ embedding applications.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.