[Mono-list] IBM.Data.DB2 on ubuntu
sanfordarmstrong at gmail.com
Tue Feb 10 12:42:24 EST 2009
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.
More information about the Mono-list