Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.