Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2874
Collapse the table of content
Expand the table of content

Compiler Error C2874

Error Message

using-declaration causes a multiple declaration of 'symbol'

The declaration causes the same item to be defined twice.

The following sample generates C2874:

// C2874.cpp
namespace Z {
   int i;

int main() {
   int i;
   using Z::i;   // C2874, i already declared

Community Additions

© 2015 Microsoft