Trouble with sub figures

I just started using a big template for a paper. With this template, if I \usepackage{subfig}, I get :

Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended.

After some googling, it looked like I should instead do

\usepackage[caption=false]{subfig}.

However, when I do that, my figures that use \subfloat produce Undefined control sequence }. Any suggestions? The error is produced with this :

\begin{figure}[H]
\centering
\subfloat[Correct position]{
\fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}
\label{fig:CatExperiments:Correct}
}
\caption{Cat sculpture in varying positions.}
\label{fig:CatExperiments}
\end{figure}


but is not produced if I comment that out. After more Googling, it sounds like subfig is deprecated, and I should use subcaption instead. So I tried

\usepackage{caption}
\usepackage{subcaption}

\begin{figure}[H]
\begin{center}
\fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}
\end{center}
\caption{Diagram of consistency function}
\label{fig:ConsistencyFunction}
\end{figure}


but now I get Undefined control sequence \caption.

Here is a minimal example (note it uses this style:
rpi.edu/dept/arc/docs/latex-thesis/thesis.cls ):

\documentclass[chap]{thesis}

%\usepackage{subfig} % Error: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. Fixed by caption=false below:
\usepackage[caption=false]{subfig} % Error: Undefined control sequence }

\begin{document}

\begin{figure}[H]
\centering
\subfloat[Correct position]{
\fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}
\label{fig:CatExperiments:Correct}
}
\caption{Cat sculpture in varying positions.}
\label{fig:CatExperiments}
\end{figure}

\end{document}


Any suggestions of what I should do to fix this?

-
You should tell what class you're using. –  egreg Feb 25 '12 at 15:55
I am using \documentclass[chap]{thesis} from here rpi.edu/dept/arc/docs/latex-thesis/thesis.cls –  David Doria Feb 25 '12 at 15:57
I don't get any error with the first version, calling \usepackage[caption=false]{subfig}. Going to caption and subcaption is useless, as the class redefines \caption in a way that the packages can't use. –  egreg Feb 25 '12 at 16:02
@egreg, I edited the original question with the exact code I'm trying. –  David Doria Feb 25 '12 at 16:06
I don't get any error. What undefined control sequence does TeX report? –  egreg Feb 25 '12 at 16:11
The question has been solved on LaTeX-Community.org, the solution was manually updating the caption package by
• Running LaTeX on caption.ins
• Running sudo texhash at the command prompt.