[Mono-dev] MSWindows cmd window
Peter Dennis Bartok
peter at novonyx.com
Mon Feb 13 17:11:23 EST 2006
Jeremy,
You need to tell the compiler to make a Windows executable, you do that with
the -target: switch. In your case, try "mcs -target:winexe xxx.cs", or
short: "mcs /t:winexe xxx.cs"
Cheers,
Peter
-----Original Message-----
From: "Jeremy Sheldon" <jeremy_sheldon at hotmail.com>
To: <Mono-devel-list at lists.ximian.com>
Date: 13 February, 2006 15:03
Subject: [Mono-dev] MSWindows cmd window
>I have just started development with Mono and have a question about running
>my programs.
>
>I did all development on a Gentoo Linux system with mono-1.1.12.1-r1,
>monodevelop-0.9-r1, glade-2.6.8, and gtk-sharp-2.8.0.
>
>Everything seems to be going along great! My question deals with when I
>run
>my programs in MSWindows. I compiled a certain simple program in Linux
>using: mcs program.cs morecode.cs -pkg:glade-sharp-2.0
>-resource:myglade.glade
>
>The program runs great in Linux. Similarly, it RUNS fine in MSWindows, but
>always starts up a cmd prompt screen along with it (say, if i double-click
>it on the desktop). Is this normal? Is there a way to make it NOT do
>that?
>
>The program is quite simple and uses the basic techniques found here:
>http://www.mono-project.com/GtkSharpBeginnersGuide
>
>sheldon
>
>
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
More information about the Mono-devel-list
mailing list