[Mono-dev] Mono-dev Error in compiling using mcs

Robert Jordan robertj at gmx.net
Fri Jan 16 19:36:00 EST 2009

Sandy Armstrong wrote:
> On 01/16/2009 01:09 PM, Mudit Vaidya wrote:
>> When I add the static Main method to hello.cs and try to build mcs from
>> source, I get the following two errors :
>> Error    1    Program
>> 'C:\Users\MICROSOFT\Desktop\mono-2.0.1\mono-2.0.1\mcs\mcs\obj\Debug\mcs.exe'
>> has more than one entry point defined:
>> 'Mono.CSharp.Driver.Main(string[])'.  Compile with /main to specify the
>> type that contains the entry point.
> Have you tried using the /main compiler option, as suggested by this 
> error?  Usage of this should be documented in the mcs man page.

The error is actually in "obj\Debug\mcs.exe", which is not a common
output target of mono's build system. I guess the OP has built mcs
with VS.NET and something went wrong.


More information about the Mono-devel-list mailing list