can someone tell me, how to create an entry for the \lstlistoflistings command in the TOC? I want, that you can see the page number where the list can be found.

-
Which documentclass do you use? –  Marco Daniel Feb 9 '13 at 12:30
I use \documentclass{scrreprt} –  Benny Neugebauer Feb 9 '13 at 12:53

The solution depends on your documentclass. If you are using a KOMA-class you can use the option listof. Of course you can set this key local to \lstlistoflistings

\documentclass[listof=totoc]{scrartcl}
\usepackage{scrhack}
\usepackage{listings}
\begin{document}
\tableofcontents
\lstlistoflistings

\section{foo}
text
\begin{lstlisting}[caption={A listing}]
(Listing content)
\end{lstlisting}
\end{document}


For the standard classes the standard command \addcontentsline should be used.

\documentclass{article}
\usepackage{listings}
\begin{document}
\tableofcontents