Digraphs

Eddy Ilg eddy@fericom.net
Sat Oct 27 15:34:00 GMT 2001


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





More information about the Gcc-help mailing list