Hello,
I'm having a macro like this ( not exactly, but function is quite equivalent):
#define STRUCTMEMBER(Member,Value) GlobalStructInstance. ## Member = Value
...
STRUCTMEMBER(Item,1);
This works perfectly in Visual C++, but gcc 3.4.5 (MingGW) yield the following error:
pasting "." and "Item" does not give a valid preprocessing token
This also happens when I use the "->" operator. I didn't found hints on concatenation, that the usage of these operators is forbidden.
Does anyone have an idea ?
Best regards, Dinsdale