# Lyx problem with generating pdf

I have installed the newest versions of Lyx and MikTeX. When I try to make a pdf of ANY document I get the message like on the image. Does someone know the solution? When I click on Show output Anyway I can see the pdf file, but it is very tiring and annoying.

• Could you post the complete code of a minimal example reproducing the error message? Aug 18 at 13:53
• I have just entered one word. Nothing else. Aug 18 at 13:54
• Yes, but behind the scene, there is a full latex code, beginning with \documentclass and ending with \end{document}. it's this code we need to see what's happening. Aug 18 at 14:03
• This is what I get when export from Lyx to Latex(Plain): %% LyX 2.3.6.1 created this file. For more info, see lyx.org. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} test \end{document} Aug 18 at 14:16
• And what's the undefined control sequence mentioned by the log file? Compiling this code just produces a warning. Aug 18 at 14:24