PTC MKS Toolkit Knowledge Base

Section:IO
Product:MKS Lex and Yacc (None)
Version:3.3
OS:All
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.

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