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]

Digraphs


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




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