Hi,
When trying to compile a trivial program which uses mathlib, I get the
following compiler errors:
In file included from ddjmnb.cc:21:
/usr/include/gen.h:1135: error: NEWPTQ' was not declared in this scope
/usr/include/gen.h:1135: error: newptq' was not declared in this scope
/usr/include/gen.h:1135: error: DOUBLE' was not declared in this scope
/usr/include/gen.h:1135: error: DOUBLE' was not declared in this scope
/usr/include/gen.h:1135: error: DOUBLE' was not declared in this scope
/usr/include/gen.h:1135: error: DOUBLE' was not declared in this scope
/usr/include/gen.h:1135: error: DOUBLE' was not declared in this scope
/usr/include/gen.h:1135: error: PDOUBLE' was not declared in this scope
[the list goes on for a screenful or so]
After I comment out the offending definition
PROTOCCALLSFSUB29(NEWPTQ,newptq,DOUBLE,DOUBLE,DOUBLE,DOUBLE,...
#define NEWPTQ(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,A26,A27,A28,A29)
CCALLSFSUB29(NEWPTQ,newptq,DOUBLE,DOUBLE,DOUBLE,DOUBLE$
from gen.h, everything works fine. Maybe the C preprocessor chokes on the
long macro definition? The gcc version I'm using is
gcc (GCC) 3.3.3 (Debian 20040401)
Best wishes,
Teemu