[Mono-winforms-list] Does not contain a static Main method suitable for an entry point
stelios k
killua.kd at gmail.com
Fri Sep 29 05:21:41 EDT 2006
use "-target=library" when compiling it if you want to make a dll and not an
exe(an exe always needs an entry point so you need a main)
> Hi everybody
>
> I keep getting this error every time I want to compile a class that is
> intended to be an object. I'm running Mono on a windows XP machine, is it
> a
> missing compiler parameter, or can anybody tell me what courses this
> problem?
>
> public static class TST
> {
> public static int num;
>
> public static void M()
> {
> num = 5;
> }
>
>
> }
>
>
> Best regards
> Rytme
>
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
_______________________________________________
Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20060929/4b46bf9a/attachment.html
More information about the Mono-winforms-list
mailing list