[Mono-list] using Mono.Unix

brad brock brock.brad at gmail.com
Thu Dec 7 01:42:49 EST 2006

I've tried but failed. For information, I use Mono that comes with debian
etch. This is the result of 'mono -V' command :

Mono JIT compiler version, (C) 2002-2006 Novell, Inc and
Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Disabled:      none

And this is the error message when I compiled my source code :
test.cs(9,44): error CS0234: The type or namespace name `Unix' does not
exist in the namespace `Mono'. Are you missing an assembly reference?
Compilation failed: 1 error(s), 0 warnings

How should I fix it?

Thank you.

On 12/7/06, Bouk, Nathan <NBouk at plansys.com> wrote:
> mcs yoursourcefile.cs
> mono yoursourcefile.exe
> using Mono;
> using System;
> using System.IO;
> class yoursourcefileclass
> {
>     public static void Main(String[] Args)
>     {
>         Console.WriteLine(" Random Number: {0}", Mono.Unix.rand());
>     }
> }
> Basically Mono.Unix.Stdlib contains a static function for each function in
> the stdlib.
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com on behalf of brad brock
> Sent: Thu 12/7/2006 12:29 AM
> To: mono-list at lists.ximian.com
> Subject: [Mono-list] using Mono.Unix
> Hi, list. I'm new in using Mono. I need help how to use the native stdlib.
> Is there any example program and the command to compile it. I really need
> it.
> Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061207/02411f15/attachment.html 

More information about the Mono-list mailing list