error: ‘xxx’ does not name a type
<p>I have a weird problem I don't understand.  I am copying over some C code to a C++ class and cannot get past this error "does not name a type" ... I hope I copied enough code for this to make sense, original program is ~1000 lines</p>

<p>Error is .. error: ‘HTTPContext’ does not name a type</p>

<p>The line of the error is "<strong>HTTPContext MainWindow::*find_rtp_session_with_url(const char *url, const char *session_id)</strong>"</p>

<p>className.h:</p>

<pre><code>class MainWindow : public QMainWindow
{
    Q_OBJECT

 public:

     typedef struct HTTPContext{
         int fd;
     }HTTPContext;

     HTTPContext *find_rtp_session_with_url(const char *url,
                                              const char *session_id);
};
</code></pre>

<p>className.cpp</p>

<pre><code>#include "className.h"

HTTPContext MainWindow::*find_rtp_session_with_url(const char *url,
                                          const char *session_id)
{
     HTTPContext *rtp_c;  

}
</code></pre>
