[Error] platmisc.h:26: error: unexpected token `0' in conditional

4 views
Skip to first unread message

Jeremy

unread,
May 9, 2016, 11:01:11 AM5/9/16
to OMNeT++ Users
Hi guys, I'am using OMNeT4.6 in ubuntu, and it works very well via IDE or command line. 

The following error prompted  when I tried to use ac++ command(AspectC++) to  combine the txc1.cc (example tictoc attached in OMNeT) with aspect.ah file.

               omnetpp-4.6/include/platdep/platmisc.h:26: error: unexpected token `0' in conditional

The 22nd to 27th line codes of platmisc.h are as following:
// Breaking into the debugger
//
#if defined _MSC_VER
#define DEBUG_TRAP  __asm {int 3}  // Visual C++: debug interrupt
#elif defined _WIN32 and defined __GNUC__
#define DEBUG_TRAP  asm("int $3\n")  // MinGW or Cygwin: debug interrupt with GNU syntax



Could anybody help me?  Why or what condition can this error prompt?
Any solutions?

Thanks a lot in advance!

Reply all
Reply to author
Forward
0 new messages