[Mono-list] library

Jeremiah McElroy jeremiah@facility9.com
Tue, 15 Jul 2003 13:18:44 -0400


You might want to try explicitly referencing the DLLs which contain the 
types you need.

e.g.
mcs /t:library /r:system.data.dll /r:system.dll tableclass.cs



matterac wrote:

>Hi,
>I've installed Mono on cygwin and now I'm trying to run some simple application I've made under .NET, some run without problem but other can't run and can't compile, 
>
>this is a problem:
>
>$ ./mcs /t:library tableclass.cs
>tableclass.cs(26) error CS0246: Cannot find type `DataTable'
>Compilation failed: 1 error(s), 0 warnings
>
>and in other application 
>
>routeserver.cs(21) error CS0246: Cannot find type `TcpServerChannel'
>Compilation failed: 1 error(s), 0 warnings
>
>
>serversip.cs(43) error CS0246: Cannot find type `TcpClientChannel'
>Compilation failed: 1 error(s), 0 warnings
>
>I use System.Data & System.Runtime.Remoting.Channel.Tcp
>
>and I find them in mono library
>
>How can I do?
>Regards
>  
>