[Mono-list] How do I link assemblies?

Chris Howie cdhowie at gmail.com
Sun Dec 7 01:11:16 EST 2008


On Sun, Nov 30, 2008 at 4:29 AM, PeterPl <chiojiop at guerrillamail.org> wrote:
> That is my simple question.
>
> How do I link an assemble?
>
> I am trying to compile my code lie this:
>
> gmcs teste.cs -r:CookComputing.XmlRpcV2.dll teste.cs

You are specifying teste.cs twice, which is probably not related to
your error but will generate more errors later.

> And I get this error message:
>
> (1,21): error CS0234: The type or namespace name `XmlRpcV2' does not exist
> in the namespace `CookComputing'. Are you missing an assembly reference?
> teste.cs(1,1): error CS0246: The type or namespace name
> `CookComputing.XmlRpcV2' could not be found. Are you missing a using
> directive or an assembly reference?
> Compilation failed: 2 error(s), 0 warnings
>
> The assembly is in the same folder as the .cs file. What am I missing here?

Are you absolutely sure that this namespace/type exists in that
assembly?  Can you use monodis or a reflector to verify this?

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list