VB.Net compiler error Vector.Add() : 'Add' is ambiguous because multiple kinds of members with this name exist in structurePosted Saturday, 19 February, 2011 - 15:15 by dg32 in
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?