Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4920

Error Message

enum enum member member=value already seen in enum enum as member=value

If a .tlb that you pass to #import has the same symbol defined in two or more enums, this warning indicates that subsequent identical symbols are ignored and will be commented out in the .tlh file.

Assuming a .tlb that contains:

library MyLib
{
    typedef enum {
        enumMember = 512
    } AProblem;

    typedef enum {
        enumMember = 1024
    } BProblem;
};

the following samples generates C4920,

// C4920.cpp
// compile with: /W1
#import "t4920.tlb"   // C4920

int main() {
}

Community Additions

ADD
Show:
© 2015 Microsoft