[Mono-list] Re: Mono Release 0.15 Binaries for Win32

Serge serge@wildwestsoftware.com
Thu, 29 Aug 2002 02:39:58 +0300


>> And, is this supported for other compilers?

> Maybe, as long as they generate CLI code and as long as we do not have bugs.

I may be wrong here, but it seems that his question was "is it possible to embed Mono
in C++ apps using compilers other than GCC"? In such case the answer is probably "yes" :-)


>> Will be posible to compile apps with embed stuff with MSVC++?

> I have not tested any C++ code, but I would certainly appreciate some
> samples running on Mono.

Again this is probably a more specific version of the same question, but here is some
info about running VC++ binaries compiled for CIL target under Mono.
It's possible, but requires a couple of extra things:
    * Micorosoft.VisualC.dll - some attributes and custom mods used by VC++
       (not yet in CVS, but included in my Win32 binary build);
    * System.Runtime.CompilerServices.CallConv* classes, custom mods (same here);

Until recently there was a tiny bug in custom mods reader, so Mono was entering infinite-loop
when loading binaries produced by VC++, this was the main showstopper and it's already fixed.
For some reason it's necessary to disassemble those binaries, then assemble them again,
Mono still refuses to load original binaries (I will look into this issue later).
Also, it's necessary to use appropriate compiler switches to ensure that there is no native
code in the resulting assemblies, and entry point is set to IL code (for EXEs).

All in all, it's already possible to compile C++ code with VisualC compiler and then run
the binary on Linux under Mono. This is very nice, IMO :-)


Sergey


----- Original Message -----
From: "Miguel de Icaza" <miguel@ximian.com>
To: "tei" <421621@ingta.unizar.es>
Cc: <mono-list@ximian.com>
Sent: Wednesday, August 28, 2002 7:09 PM
Subject: Re: [Mono-list] Re: Mono Release 0.15 Binaries for Win32


> hey,
>
> > And, is this supported for other compilers?
>
> Maybe, as long as they generate CLI code and as long as we do not have
> bugs.
>
> > Will be posible to compile apps with embed stuff with MSVC++?
>
> I have not tested any C++ code, but I would certainly appreciate some
> samples running on Mono.
>
> > How I can make OpenGL apps with C#?
>
> Use one of the GL bindings (Mark's are on CVS and aim for more
> completeness, or you can try the more mature CSGL).
>
> Migiuel
>