"1506-221 (S) Initializer must be a valid constant expression."
In aix during compilation of header file i am facing this issue.
In the header file the source is like
#define A(b) (a+b)
like that.
wherever this macro "A"(Ex:A(5)) is used in source it throws the above error.
can anyone help me to solve this?
Edited:
in the header file
#define A(b) (a+b)
in the source file
struct a
{
int a;
int b;
} ain = {10, A(10)};
like this .