This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Preprocessor Problems
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: Preprocessor Problems
- From: Alexy Khrabrov <alexy dot khrabrov at setup dot org>
- Date: Tue, 23 Jan 2001 13:56:12 -0500 (EST)
- Cc: Alexy Khrabrov <alexy dot khrabrov at setup dot org>, gcc-bugs at gcc dot gnu dot org, John Pedretti <pedretti at roguewave dot com>, Martin Sebor <sebor at roguewave dot com>, Neil Booth <neilb at earthling dot net>, Michael Steel <ledares at algorithmic-solutions dot com>
- References: <14957.50528.659741.802398@roll.badbox.com><20010123183054.C6595@daikokuya.demon.co.uk>
Neil Booth writes:
o Alexy Khrabrov wrote:-
o Content-Description: message body and .signature
o
o > ETEMPLATE(##ctypes) class name; \
o > ETEMPLATE(##ctypes) \
o
o This kind of stuff is not portable. Why do you need the ##? Just
o remove it, and probably everywhere else it is complained about. You
o cannot paste anything with a '('; shame on other preprocessors for not
o telling you so.
o
o Neil.
Of course I tried that and the file still fails to
go through g++-2.96 which I got as an RPM
g++-2.96-69. LEDA is one of the largest legacy
C++ libraries, and its config says it recognizes
g++ 2.95. So I wonder if I downgrade to 2.95 I
probably will see the light? Expanding cascading
macros with parameters seemingly needs ('s on the
RHS -- how is it done properly, if at all?
LEDA says it now supports recent KAI and Borland C++.
Is it possible they are all wrong? Is there a way
to revert to wrong behavior then? ;-)
I need to start modeling the web as a graph, and
need all the power of C++ and LEDA. But I'm stuck
for a week with C++ preprocessing standardization,
and enjoy it as an Ada standard lover...
--
Cheers,
Alexy V. Khrabrov :: www.suffix.com :: Age Quod Agis