[Mono-devel-list] Embedding Mono
Miguel de Icaza
miguel at ximian.com
Wed Oct 22 14:19:46 EDT 2003
> - AFAIK, there is no "standard" embedding API for .NET such as JNI for
> Java; so Mono has to define its own. Is it correct?
Yes, that is correct.
> - Such an API has not been designed yet, in particular one has to extract
> from Mono source code one of the different ways to retrieve a method.
> What is the priority of designing and implementing a documented API?
> Is it something I can expect in the near future, or is it low
> on the priority list?
Well, it is documented on the Web page on the Mono site. If you need
specific documentation on a topic, let us know. If you have specific
criticism, ideas, or things you would like to see, let us know, we are
happy to take developer input into this matter.
A problem we have now is that we lack a mechanism to document C APIs,
while we have a fairly good mechanism for C# based APIs (me refusing to
use Docbook and the associated tools also weights in).
> - the embedded-api doc mentions examples in a "mono/sample/embed"
> directory. I can find only a "mono/samples/embed" directory,
> with a single example. Are there other samples?
Paolo posted (check the Mono main page archive) a sample on doing
Perl/Mono embedding; There is an old Gnumeric patch lying around that
did that as well.
> - Moreover, I don't succeed in building this sample. When I "mcs test.cs",
> the compiler first issues a warning
> cant resolve internal call to "MonoEmbed::gimme()"
> and then fails with:
> Your mono runtime and corlib are out of sync.
> Corlib is: test
You can ignore the error; We will remove it sometime in the future
(notice that the build actually succeeds).
More information about the Mono-devel-list