# Why does the pdf file is successfully generated while the compilation ends with warnings in beamer using Kile? [closed]

I don't know what is going with Kile when I use the document class beamer. The pdf can successfully be generated after the compilation but I get many error messages. Please here a minimal working environment:

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{default}

\begin{document}
\begin{frame}
Presentation with beamer.
\end{frame}
\end{document}


I get the following after the compilation:

[PDFLaTeX] example.tex=>example.pdf(pdflatex)
[PDFLaTeX] finished with exit code 1
./example.tex:10:Font shape 'OT1/cmss/m/n' in size <4> not available (Font) size <5> substituted on input line 10...

• Add \usepackage{lmodern} \usepackage[T1]{fontenc} to your preamble. – Paul Gaborit Mar 12 '14 at 13:01
• You are misreading the error message which will not say Undefined control sequence \begin{document}!!  \begin{document} will be the location the error is detected, the undefined command will be shown on the line above – David Carlisle Mar 12 '14 at 13:18