[Mono-list] IBM.Data.DB2 on ubuntu

Bartolomeo Nicolotti bnicolotti at siapcn.it
Tue Feb 10 12:53:56 EST 2009

Sandy Armstrong wrote:
> On 02/10/2009 09:20 AM, Bartolomeo Nicolotti wrote:
>> But if I try to compile a file that makes use of the namespace
>> IBM.Data.DB2
>> I got:
>> siap at LxPC54:~/src/test$ gmcs helloDB2.cs
>> helloDB2.cs(2,14): error CS0234: The type or namespace name `Data' does
>> not
>> exist in the namespace `System'. Are you missing an assembly reference?
>> helloDB2.cs(3,7): error CS0246: The type or namespace name `IBM' could
>> not
>> be found. Are you missing a using directive or an assembly reference?
>> Compilation failed: 2 error(s), 0 warnings
> Just like you need to add references to a Visual Studio project in order 
> for it to build, you need to specify references on the command line when 
> you build with gmcs.  For example, to reference the System.Data 
> assembly, you'd do something like
> gmcs -r:System.Data helloDB2.cs
> You probably have other references you'll need to add, too?  If you look 
> at the references in your Visual Studio project, it should give you a 
> clue.  It might be easier to just try opening your Visual Studio 
> solution in MonoDevelop and build from there.
> Best,
> Sandy
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

I think I've to say where's the assembly is, something like:


but I don't see any assembly under /opt/ibm

View this message in context: http://www.nabble.com/IBM.Data.DB2-on-ubuntu-tp21937603p21939043.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list