[Mono-list] Running vs2005 beta 2 compiled code on mono...

Kornél Pál kornelpal at hotmail.com
Tue Jul 5 15:27:02 EDT 2005

Using the following code the required "?.cctor@@$$FYMXXZ" can be created:

#pragma warning(disable:4483)

void __clrcall __identifier(".cctor")()

In addition if you set entry point to "main" in linker and don't use the CRT
at all then the resulting assembly should be platform independent.

Unfortunately you cannot use CRT. In order to can use CRT Mono should
implement the MS CRT and some kernel32.dll functions as well.


----- Original Message -----
Subject: Re: [Mono-list] Running vs2005 beta 2 compiled code on mono...

> >So I think your only chance is to separate native code from managed code.
>>And compile managed code either using /clr:safe or C#.
> Yup.  Thanks again for all the info.
> If mono implemented a c++/clr compiler then we could probably use the
> same code everywhere (we'd have to build on all 3 platforms, but that's
> no big deal).  As it stands we'll probably end up with 3 different
> codebases -- c++ on Linux, c++/clr on Windows, and objective c++ on mac.
> If I could make a suggestion, mono may wish to consider implementing a
> c++/clr compiler for mono 2.  The new c++/clr in whidbey is by far the
> most attractive new feature from my company's point of view.  I believe
> there are other companies with similar points of view.
> It is *very* natural and easy to start extending a large existing c++
> codebase with .net features using c++/clr in whidbey.  I imagine many
> potential adopters have similar circumstances.
> Alex

More information about the Mono-list mailing list