"saleem" <su**************@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I have two macros in a.h file
like #define DEVPKTTYPE 0x00
#define ETHPKTTYPE 0x01
when I am including this file
in main program i.e main.c
#include " a.h"
Did you really have a space in your literal?
Perhaps that's the trouble.
and trying to assign it to a variable
int type = DEVPKTTYPE;
I am getting the compiler error saying parse error before line number
specifying this line (int type = DEVPKTTYPE)
but when I am doing the #defines itself in main.c file
like
#define DEVPKTTYPE 0x00
#define ETHPKTTYPE 0x01
main()
{
int type = DEVPKTTYPE;
}
I am not facing the parse error. what was the problem while I included
the a.h file. please help me.
Well, logically (if you're presenting accurate information),
there's something wrong in your header, or with the directive
which includes it.
-Mike