This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2871
'name' : does not exist or is not a namespace
Possible causes
- Extending an item that is not a namespace.
- Adding a nonexistent namespace with a using declaration.
- Adding something that is not a namespace with a using declaration.
Example
int A;
int i;
namespace A { \\ error: cannot extend; A is not a namespace
using namespace B; \\ error: namespace B does not exist
using namespace i; \\ error: i is not a namespace
}