title: What does it mean when you get a compile error "looks like a function definition" for a class declaration?
body: <p>I recently encountered this problem. I found many instances of people asking the question&mdash;<a href="http://www.codeguru.com/forum/showthread.php?p=982326" rel="noreferrer">here, for example</a>&mdash;but no concrete answers.</p>
  
  <p>Here's the sample code hoisted from that link:</p>
  
  <pre><code>class AFX_BASE_APPLICATION_APP_CLASS CFileExtension 
  {
  public:
     CFileExtension ();           
     virtual ~CFileExtension ();
  };
  </code></pre>
  
  <p>The error this generates is:</p>
  
  <p><code>c:\FileExtension.h(14) : error C2470: 'CFileExtension' : looks like a function definition, but there is no formal parameter list; skipping apparent body</code></p>