This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error C202 undefined identifier

Hi,

I defined,

Uint16 TCounts[10]; in globals.h

and tried to use it in cc01drv.c where #include "globals.h" is there.

but during build the error msg coming up is, "C202 undefined identifier"

Why this is happening, I haven't initialize the array.

Parents
  • reference by Herbert Schildt.

    Bad idea. You picked the worst possible author to acquire a C book by. Dump it now before you do yourself further harm, and get a proper textbook. See the C FAQ for suggestions.

    Why I have to define main in this way?

    Because you don't. You're being taught wrong techniques by a long since outdated book by a thoroughly misguided author.

Reply
  • reference by Herbert Schildt.

    Bad idea. You picked the worst possible author to acquire a C book by. Dump it now before you do yourself further harm, and get a proper textbook. See the C FAQ for suggestions.

    Why I have to define main in this way?

    Because you don't. You're being taught wrong techniques by a long since outdated book by a thoroughly misguided author.

Children
No data