[Mono-list] Getting visual studio .net c++ code to compile and run in mono

Louis R. Marascio marascio@metreos.com
Tue, 16 Mar 2004 23:46:42 -0600


John,

Mono doesn't support "mixed-mode" assemblies.  In other words, you have =
to
have a pure IL assembly or you can't run it within Mono.  So, =
unfortunately,
there is no way you can make this configuration work outside of Visual
Studio and Microsoft's runtime.

Check out the Mono FAQ, http://www.go-mono.com/faq.html, question #63. =
It
explains it a bit more.  You may be able to make this work (in a limited
fashion) if you are very careful as to what goes into your C++ generated
assembly.

Best regards,

Louis

---
Louis R. Marascio
Metreos Corporation
o: +1 (512) 437 7903
m: +1 (832) 768 4609
e: marascio@metreos.com=20

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of John Habermann
Sent: Tuesday, March 16, 2004 11:32 PM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Getting visual studio .net c++ code to compile and =
run
in mono


Hi

I am a linux user of a number of years and just started a course in C++
programming where they are using Visual Studio .Net as the IDE for =
learning
programming. I am running Debian on a PPC so I thought I might be able =
to
use it to get the c++ code that is writting in Visual Studio .Net to run =
on
my computer. I have successfully installed mono from source and got it =
to
compile and run a couple of example c# programs, although I have to use =
the
mint runtime rather than mono which I found out is due to the PPC. What =
I am
wondering though is if it is possible to compile a c++ file rather than =
a c#
file? The problem with the c++ files written in Visual Studio .Net is =
that
they can't be compiled using g++.

An example of the program I am trying to get working is:=20

#using <mscorlib.dll>
using namespace System;

void main()
{
	//double (double precision floating point)
	double AUD;
	double USD =3D 79.99;

	//convert from US to AUS dollars=20
	AUD =3D USD / 0.78;

	//display the conversion
	Console::Write( "US $77.99 =3D AUS " );
	Console::WriteLine ( Convert::ToString( AUD ) );

	//make the window stay open till we hit Enter
	Console::Read();
}

Is it worth trying to run mono on x86 based chipset or is it just that =
when
you write c++ code in Visual Studio .Net you are stuck with running it =
on
Windows.

Thanks for your help.

--=20
John Habermann

j_habermann@tpg.com.au
http://www.ngogeeks.com
jabberid: jhabbers

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list