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

Sandy Armstrong sanfordarmstrong at gmail.com
Fri Jan 16 18:58:32 EST 2009


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.

Best,
Sandy


More information about the Mono-devel-list mailing list