title: xcode gives syntax error on cpp code
body: <p>I am trying to reuse Apple's Speak Here <a href="http://developer.apple.com/iphone/library/samplecode/SpeakHere/index.html#//apple_ref/doc/uid/DTS40007802" rel="nofollow noreferrer">sample code</a> in my own iPhone app. I downloaded and compiled the project with no problems, so I then added some of the files to my own application. When I try to compile my own application, the compiler gives me </p>
  
  <p>MeterTable.h:54: error: syntax error before 'MeterTable'</p>
  
  <p>The relevant code is: </p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  
  class MeterTable  // line 54
  {
  public:
  </code></pre>
  
  <p>It looks kind of like xcode isn't recognizing MeterTable.h and MeterTable.mm as C++ files. I've checked File>>GetInfo for MeterTable.mm, though, and it lists filetype as sourcecode.cpp.cpp.</p>
  
  <p>Why won't this compile?</p>