* Digraphs
@ 2001-10-27 15:34 Eddy Ilg
2001-10-28 1:14 ` Digraphs Florian Weimer
0 siblings, 1 reply; 2+ messages in thread
From: Eddy Ilg @ 2001-10-27 15:34 UTC (permalink / raw)
To: gcc-help
Hi,
I am using GCC and I have a Problem compiling following code:
#define TEST(test) { \
}
getting following error Messages:
g++ -traditional-cpp -Wall -I . -I /pub/robocontrol testapp.cpp -o testapp
In file included from /pub/robocontrol/RoboAPI/packet_net.h:29,
from testapp.cpp:16:
/pub/robocontrol/RoboAPI/module.h:71: parse error before `}'
make: *** [testapp] Error 1
There is no spaces behind the \. I have used other compilers and this works
well. I have found out that cpp recognizes the {} as "digraphs". Is this the
cause and can I disable that feature?
Thanks
Eddy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Digraphs
2001-10-27 15:34 Digraphs Eddy Ilg
@ 2001-10-28 1:14 ` Florian Weimer
0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2001-10-28 1:14 UTC (permalink / raw)
To: Eddy Ilg; +Cc: gcc-help
"Eddy Ilg" <eddy@fericom.net> writes:
> #define TEST(test) { \
> }
> /pub/robocontrol/RoboAPI/module.h:71: parse error before `}'
> There is no spaces behind the \. I have used other compilers and this works
> well.
Could you provide additional information? I doubt this is a
preprocessor problem.
> I have found out that cpp recognizes the {} as "digraphs".
No, digraphs are the following tokens:
<: :> <% %> %: %:%:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-28 1:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-27 15:34 Digraphs Eddy Ilg
2001-10-28 1:14 ` Digraphs Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).