I'm trying to use the 'listings' package for my project work in LaTex. This is my stripped down code for illustration:
\documentclass[a4paper, 12pt, BCOR5mm, captions=tableheading, pointlessnumbers, listof=entryprefix]{scrreprt}
\usepackage{listings}
\usepackage{amsmath}
\begin{document}
\lstlistoflistings
\addcontentsline{toc}{chapter}{Quellcodeverzeichnis}
\newpage
\begin{lstlisting}[caption={Beispielcode}, label={code:code},captionpos=b]
rofl
\end{lstlisting}
\end{document}
When I compile the file in LaTex I always get 3 errors.
These are the 3 errors I get:
A PDF is built, but the result doesn't look like the table of figures.
I'm using TeXnicCenter 2.02 Stable (64 bit), Win10, MiKTeX-pdfTeX 4.10 (MiKTeX 22.3).