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 at 12:30
I use \documentclass{scrreprt} –  Benny Neugebauer Feb 9 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
\lstlistoflistings

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

-
Thanks for the info but how do I get the listings entry without numbering? –  Benny Neugebauer Feb 9 at 12:57
@BennyNeugebauer: Which number do you mean? –  Marco Daniel Feb 9 at 12:58