You are missing something:
using Mono.Unix;
using System;
public class test {
public static void Main(string[] args) {
Console.WriteLine("Random Number: {0}", Mono.Unix.Native.Stdlib.rand
());
}
}
see "Mono.Unix.Native.Stdlib.rand()" and in compile time:
mcs test.cs -r:Mono.Posix.dll -out:test.exe
remember that the CS**** are C# standard errors so you can use Monodoc to
search it or Google in this case you are missing -r:Mono.Posix.dll
it works!!!
On 12/7/06, Brad Brock <[EMAIL PROTECTED]> wrote:
I want to use stdlib in Mono.
This is my source code
using Mono;
using System;
using System.IO;
class yoursourcefileclass
{
public static void Main(String[] Args)
{
Console.WriteLine(" Random Number: {0}", Mono.Unix.rand());
}
}
I've some trouble when I compile my source code, this is the error message
:
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
Do I miss some package to install? How should I fix it?
________________________________
Have a burning question? Go to Yahoo! Answers and get answers from real
people who know.
--
:::lxuser 391715:::
http://igordevlog.blogspot.com/