Hi,
Program below runs fine on windows. But compilation error occurs on linux "error: pasting "." and "config" does not give a valid preprocessing token"
Any reason??? i cant understand why....
#include <stdio.h>
typedef struct pr {
int config;
}pr_t;
#define JOIN(x,y) x.##y
void main()
{
pr_t temp = {5};
printf("Value %d\n", JOIN(temp, config)); //temp.config
return 0;
}