This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Macro expansion: GCC 3.4.4
- From: John Love-Jensen <eljay at adobe dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>, <gcc-help at gnu dot org>
- Date: Wed, 09 Nov 2005 06:59:55 -0600
- Subject: 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