the problem is not related to pch generation,
it's just by coincidence that the additional compiler options which were added by CB,
if you select pch in object output dir, prevent compiling or the other way round,
it coincidentally compiles if you switch to pch alongside header file.
the real necessity is ALWAYS to specify the necessary directories,
where the compiler shall look for the headers.
therefore adding Lua to the list of compiler include-directories is not a workaround, it's the correct project setup.