B
Boris Boehlen
Hello,
One of our C files declares the following macro
#define LRCALL_USELOCAL(op,s1,s2) RG__##op##s2;
which used as follows:
LRCALL_USELOCAL(DeleteGraphPool, (PDir, Pool, get_pool_mark( PDir, Pool), Status), (PDir, Pool, Status) );
When I compile this code with GCC 3.3 I get the following error message:
rgras.c:290:111: pasting "LG__DeleteGraphPool" and "(" does not give a valid preprocessing token
Looking around in the web I found no applicable solution for this problem.
For example, it has been suggested to remove the ## which is not possible
in my case. As far as I can see the problem seems to be that we are
passing a couple of parameters, enclosed in (...) to the macro. The code
compiles with GCC 2.95.
Any ideas? Please respond by mail because I'm reading this news group on
an irregular basis.
Regards,
Boris Boehlen
One of our C files declares the following macro
#define LRCALL_USELOCAL(op,s1,s2) RG__##op##s2;
which used as follows:
LRCALL_USELOCAL(DeleteGraphPool, (PDir, Pool, get_pool_mark( PDir, Pool), Status), (PDir, Pool, Status) );
When I compile this code with GCC 3.3 I get the following error message:
rgras.c:290:111: pasting "LG__DeleteGraphPool" and "(" does not give a valid preprocessing token
Looking around in the web I found no applicable solution for this problem.
For example, it has been suggested to remove the ## which is not possible
in my case. As far as I can see the problem seems to be that we are
passing a couple of parameters, enclosed in (...) to the macro. The code
compiles with GCC 2.95.
Any ideas? Please respond by mail because I'm reading this news group on
an irregular basis.
Regards,
Boris Boehlen