I have the following code:
\documentclass{article}
\usepackage{hyperref}
\usepackage{minted}
\begin{document}
A nice paper has the following things:
\begin{listing}
\begin{minted}{haskell}
data RCPoint = RCPoint {
_rcp_si :: Integer
}
\end{minted}
\label{ch1}
\caption{The RCPOINT Listing}
\end{listing}
\begin{equation}
\label{eq:eqn1}
x^2 - 2 x
\end{equation}
I like my equation in \ref{eq:eqn1}.
I also like my code in Listing \ref{ch1}.
\end{document}
which compiles normally, to produces::

The reference to the listing in the final line is missing. I get a warning for the final line of output:
(/usr/share/texmf-dist/tex/latex/amsfonts/umsb.fd)
Package hyperref Warning: Suppressing empty link on input line 55.
[1] (./nice-org-paper.aux) )
Output written on nice-org-paper.pdf (1 page).
Transcript written on nice-org-paper.log.
How do I get the reference to work?
. This shows up in screen-reading software, or if the image can’t be loaded, but some (most?) people won’t see that. You can find out more on the Markdown help page. – alexwlchan Mar 09 '14 at 20:23