I would like to have two listings, side by side.
They have approximately the same length, therefore I don't care about how it's layed out if one part is longer.
I tried
\begin{minipage}{\textwidth}
\begin{parcolumns}{2}
\colchunk{\begin{lstlisting}[caption=code 1,frame=tlrb]{Name}
void code()
{
}
\end{lstlisting}}
\colchunk{\begin{lstlisting}[caption=code 2,frame=tlrb]{Name}
void code()
{
}
\end{lstlisting}}
\colplacechunks
\end{parcolumns}
\end{minipage}
while the border of the listings end up in chunks as follows:
Btw I'm using the texlive-package & pdflatex
on Ubuntu and the document class is
\documentclass[
a4paper,
10pt,
twoside,
openright,
notitlepage,
parskip=half,
]{scrreprt}
Any idea is appreciated.