dg32's picture

VB.Net compiler error Vector.Add() : 'Add' is ambiguous because multiple kinds of members with this name exist in structure

I'm using VB.Net trying to execute the following code:

   Public Sub VectorTest()
      Dim a, b, c As New OpenTK.Vector3
      OpenTK.Vector3.Add(a, b, c)
   End Sub

... but the compiler is choking on the method "Add()" giving the error:

  • 'Add' is ambiguous because multiple kinds of members with this name exist in structure

Other Vector3 methods such as Multiply (which appears to have exactly the same parameters as Add) work ok. Other vector types (Vector3D, Vector2, Vector2D) also error calling the Add method.
I've tried all combinations of VS2008 and VS2010 with OpenTK 1.0.27844921 and 1.0.414.40313 linked with .Net 2.0 and 3.5 but all give the same error.

Does anyone know how to resolve this?
Thanks


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Could you please file a bug report? I'll take a look tomorrow, this looks like a bug.