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: [EMAIL PROTECTED] 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Habermann
Sent: Tuesday, March 16, 2004 11:32 PM
To: [EMAIL PROTECTED]
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: 

#using <mscorlib.dll>
using namespace System;

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

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

        //display the conversion
        Console::Write( "US $77.99 = 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.

-- 
John Habermann

[EMAIL PROTECTED]
http://www.ngogeeks.com
jabberid: jhabbers

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to