[Mono-list] NPGSQL compiling errors

B R charlatat at hotmail.com
Thu Sep 13 16:08:57 EDT 2007

I'm trying to use Mono to compile a C# program I'm tinkering with. I want to 
test it on a Linux environment (works fine on Windows). It just connects to 
a POSTGRESQL backend and returns minor information (I'm still learning 
NPGSQL).  It uses these references:

using System;
using System.Data;
using Npgsql;

Which compiles fine, if I use the MS.Net compiler. However, MCS gives me 
errors. First it complained about System.Data, which I was able to fix using 
the "-r:System.Data" argument upon compile time.

Now, it complains that it can't find Npgsql. I'm wondering if the DLL should 
be located somewhere specific, or if I should be compiling with an 
additional argument. Can someone shed some light?


More information about the Mono-list mailing list