C
Chris
Hi all
We have a strange problem with macros:
#define SQLST_MAP_IND_O(Tbl,Fld) i##Tbl##_O[ ##Tbl##_##Fld]=i##Tbl##_##Fld;
SQLST_MAP_IND_I(RAGREEJ1,FORMFROMTMSTP);
=> gcc 3.3.4 gives the following error:
source.c:173:40: pasting "[" and "RAGREEJ1" does not give a valid
preprocessing token
The same code compiles fine on Win32 (MSVC 7.1) and on z/OS
So what is wrong? The code or... the precompiler?
Bye
Chris
We have a strange problem with macros:
#define SQLST_MAP_IND_O(Tbl,Fld) i##Tbl##_O[ ##Tbl##_##Fld]=i##Tbl##_##Fld;
SQLST_MAP_IND_I(RAGREEJ1,FORMFROMTMSTP);
=> gcc 3.3.4 gives the following error:
source.c:173:40: pasting "[" and "RAGREEJ1" does not give a valid
preprocessing token
The same code compiles fine on Win32 (MSVC 7.1) and on z/OS
So what is wrong? The code or... the precompiler?
Bye
Chris