title: using C++ code in XCode
body: <p>I tried to import a C++ library into XCode, I renamed the .cpp to .mm but when I try to compile it shows me errors like this:</p>
  
  <p><strong>DateOps.h:23: error: expected '=', ',', ';', 'asm' or '_<em>attribute</em>_' before 'DateOps'</strong></p>
  
  <p>start of DateOps.h file</p>
  
  <pre><code>#if !defined( DATE_OPS__H )
  #define DATE_OPS__H
  
  typedef int MonthDays[13];
  
  typedef long YearEndDays[2];
  
  class DateOps {
  public:
    enum CalendarType {
      T_GREGORIAN = 0,
      T_JULIAN = 1,
    };
  </code></pre>
  
  <p>...</p>