PTC MKS Toolkit Knowledge Base

Product:MKS Lex and Yacc (None)
Keywords:compile, error, line directive
Category:General/Knowledge Base

I am not suppressing line directives and am getting errors compiling with MSVC++.

Use the -l option of lex and yacc to supress line directives. If you don't you may get errors like "'m' : unrecognized character escape sequence" or find that the compiler is trying to compile the source files which the line directives point to. This happens because the syntax of the line drectives is not recognized by the Microsoft compiler.

This issue was fixed in the 3.3.1 version of MKS Lex & Yacc.