I try to compile a C + + / CLI file, which includes the header file (native, third-party) In which a class "Foo" is defined. Apart from this, I am using C # DLL using # # "Bar.dll" in which a namespace is defined as "FU". Compiler error gives C2872 "Fu is ambiguous symbol"
I do not know that the native name "foo" has been defined because the class file in the header file is not nested in fixed namespace. So I think the class "foo" can not be in a namespace (it is possible that C ++, right?). Otherwise, I will specify the "Foo" class with its namespace to make it specific to the compiler.
Let me "bar." There is a possibility to rename the namespace "foo" used in, but I'm looking for a different solution to keep the namespace, actually there is a square and a namespace different elements - but I think that ++ / Not for the compiler?
I'm not sure this will work, but it's a try Is worth
Namespace FooNamespace = Foo; Typing ff fu class; Namespace instructions are valid only on namespace, not classes. You need to be able to use FooClass and FooNamespace in your code, with Wyz-Versa with Typef.
Comments
Post a Comment