locked
error C2065: 'eT00' : undeclared identifier RRS feed

  • Question

  • enum
     eMultiTab { eMech = eT00, eElec = eT01 };
    ......
    ......
    Error 27 error C2065: 'eT00' : undeclared identifier e:\Catag\Catalogue\file1.h 920
    Error 27 error C2065: 'eT01' : undeclared identifier e:\Catag\Catalogue01\file1.h 920

    Hi, 

    During Compiling the file1.h , I am getting the above errors, Please let me know how can I resolve the same.

    I am using VS2010, Win 7 O/S,

    with Regards,

    VishalK


    Monday, October 8, 2012 1:39 PM

Answers

  • VishalK_94 wrote:

    enum
    eMultiTab { eMech = eT00, eElec = eT01 };
    ......
    ......
    Error 27 error C2065: 'eT00' : undeclared identifier    e:\Catag\Catalogue\file1.h 920
    Error 27 error C2065: 'eT01' : undeclared identifier    e:\Catag\Catalogue01\file1.h 920

    During Compiling the file1.h , I am getting the above errors, Please  let me know how can I resolve the same.

    Naturally, you would have to declare identifiers eT00 and eT01, so that  they are no longer undeclared. Or #include a header file where they are  declared.


    Igor Tandetnik

    Monday, October 8, 2012 1:52 PM
  • As you know In C and C++, <tt>enum</tt> types can be used to set up collections of named integer constants and here compiler is not able to find what is eT00 So that's why it is throwing error to you.

    Thanks


    Rupesh Shukla

    Monday, October 8, 2012 2:54 PM

All replies

  • VishalK_94 wrote:

    enum
    eMultiTab { eMech = eT00, eElec = eT01 };
    ......
    ......
    Error 27 error C2065: 'eT00' : undeclared identifier    e:\Catag\Catalogue\file1.h 920
    Error 27 error C2065: 'eT01' : undeclared identifier    e:\Catag\Catalogue01\file1.h 920

    During Compiling the file1.h , I am getting the above errors, Please  let me know how can I resolve the same.

    Naturally, you would have to declare identifiers eT00 and eT01, so that  they are no longer undeclared. Or #include a header file where they are  declared.


    Igor Tandetnik

    Monday, October 8, 2012 1:52 PM
  • As you know In C and C++, <tt>enum</tt> types can be used to set up collections of named integer constants and here compiler is not able to find what is eT00 So that's why it is throwing error to you.

    Thanks


    Rupesh Shukla

    Monday, October 8, 2012 2:54 PM
  • Refer below links

    C Enumeration Declarations

    Enumerated type


    Thanks, Renjith V R

    Wednesday, October 10, 2012 4:22 PM