Re: System.Windows.Forms question
Stephen Compall <[email protected]> Mon, 02 May 2005 23:59:26 -0500
| Newsgroups | gmane.comp.gnu.dotgnu.developer |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2005-05-02 at 21:25 -0700, Duck Grossberg wrote:
> using System;
> using System.Windows.Forms;
> using System.Drawing;
> class Welcome4
> {
> static void Main( string[] args )
> {
> MessageBox.Show( "Welcome\nto\nC#\nprogramming!" );
> }
> }
>
> Ducks-Computer:~ duck$ cscc -o example.exe example.cs
> example.cs:8: `MessageBox' is not declared in the current scope
> example.cs:8: called object is not a method or delegate
If you want stuff outside mscorlib (in this case you want
System.Windows.Forms.dll), you have to add those libraries with -l. In
this case, there is a convenience option -winforms that will add the -l
options for you. e.g. cscc -winforms -o example.exe example.cs
> If this is the inappropriate forum for asking these types of
> elementary questions, a point in the right direction would be
> appreciated.
It's fine AFAIK, but you may prefer joining #dotgnu on irc.freenode.net.
--
Stephen Compall
_______________________________________________
Developers mailing list
[email protected]
http://dotgnu.org/mailman/listinfo/developers
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCdwUtYWjD35Pp0wIRAvuOAKCaGt1qs6Mp3S0mQTrRE/oOM0Q6mACfRYEV MfuwSktMNu5whYsmIC1h7y4= =9OHT -----END PGP SIGNATURE-----