Macro expansion: GCC 3.4.4

John Love-Jensen eljay@adobe.com
Wed Nov 9 13:00:00 GMT 2005


Hi Nick,

NCR is not a symbol.  It is part of a preprocessor directive.

Use:
int const NCR = 4; // internal linkage
...or...
extern int const NCR = 4; // external linkage

Then it is a symbol.  (This should work in C++98, I'm not sure about C99.)

HTH,
--Eljay



More information about the Gcc-help mailing list