bendx
December 5th, 2005, 11:08 PM
I'm having a namespace clashing issue in my managed C++ app. I am using VC8 and have a simple .cpp file that includes headers from a 3rd party library. That 3rd party library has classes named System and Image and a variety of others that can be found in the .NET Framework.
As soon as I turn on CLR Runtime support and make the app a managed C++ build, I get dozens of name clashing errors because of the ambiguity between the .NET classes and the 3rd party library.
How can I solve this? I believe VC8 is automatically including or "using" some of the default .NET namespaces like System; and System.Drawing, etc, even when I haven't explicitely done so.
I've tried explicitely referring to all of my 3rd party classes with a namespace prefix like 3rdParty::SomeClass, but it still says there's an ambiguity.
As soon as I turn on CLR Runtime support and make the app a managed C++ build, I get dozens of name clashing errors because of the ambiguity between the .NET classes and the 3rd party library.
How can I solve this? I believe VC8 is automatically including or "using" some of the default .NET namespaces like System; and System.Drawing, etc, even when I haven't explicitely done so.
I've tried explicitely referring to all of my 3rd party classes with a namespace prefix like 3rdParty::SomeClass, but it still says there's an ambiguity.