This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Macro expansion: GCC 3.4.4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]