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 65

Hello,
I have this code

#include <LPC214x.h>
#include "ARM_Eprom.h"
#include "ARM_IAP.h"
#define IAP_LOCATION 0x7ffffff1

const unsigned char eeprom[EE_SIZE] __at EE_ADDR_L;

when i compile this, I have an error
Src\ARM_Eprom.c(22): error: #65: expected a ";"

where goes this ";" ? if this is the problem..

Parents
  • "where goes this ';' ? if this is the problem.."

    Very often, it is not the actual problem.

    Very often, the real problem is a typo or some undefined macro somewhere earlier - this causes the compiler to get confused, and the only way it can see to make sense of it is to assume that a semicolon has been missed somewhere...

    Do you have any other errors or warning before this one? If you do, fix them first.

    Otherwise, look carefully at the preceding lines - is everything correctly spelled? is the syntax correct? are all names (especially #defined ones) properly defined?

    Check out You need Andy's Handy Hint for Debugging Preprocessor Problems:

    www.8052.com/.../read.phtml

Reply
  • "where goes this ';' ? if this is the problem.."

    Very often, it is not the actual problem.

    Very often, the real problem is a typo or some undefined macro somewhere earlier - this causes the compiler to get confused, and the only way it can see to make sense of it is to assume that a semicolon has been missed somewhere...

    Do you have any other errors or warning before this one? If you do, fix them first.

    Otherwise, look carefully at the preceding lines - is everything correctly spelled? is the syntax correct? are all names (especially #defined ones) properly defined?

    Check out You need Andy's Handy Hint for Debugging Preprocessor Problems:

    www.8052.com/.../read.phtml

Children