Compiler Error C2873


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Error C2873.

symbol' : symbol cannot be used in a using-declaration

A using directive is missing a namespace keyword. This causes the compiler to misinterpret the code as a using declaration rather than a using directive.