Export (0) Print
Expand All
Expand Minimize

Compiler Error C2400

inline assembler syntax error in 'context'; found 'token'

The token caused a syntax error in the specified context.

Possible cause

  • Specifying a Pentium instruction. Choosing the Pentium option (/G5) causes the compiler to generate instruction sequences optimized for the Pentium, but does not allow Pentium-specific instructions.

The following sample generates C2400:

// C2400.cpp
int main() {
   __asm {
      heh ax,bx;   // C2400
      // try..
      // mov ax,bx;
   }
}
Show:
© 2014 Microsoft