none
Vector4 naming clash in MSR_NuiAPi.h RRS feed

  • Question

  • I'm currently trying to integrate Kinect into an existing framework for a game and ran into a slightly nasty problem. Including MSR_NuiApi.h defines a structure called Vector4, but my codebase already defines a type called Vector4, which leads to an explosion of "Ambiguous symbol" errors.

    I can edit MSR_NuiApi.h (and MSR_NuiSkeleton.h) to rename the structure, but obviously this isn't ideal. The existing Vector4 type is so widely used throughout my codebase that renaming that isn't practical. Does anyone have any other suggestions? Also, has anyone else run into the same problem? I can't imagine I'm the only person using Kinect who already has a 'Vector4' type! Any chance we can give this a more specific name for the next release (or better yet get this stuff in a namespace)?

    Tuesday, December 20, 2011 5:40 PM