title: How to deal with forward declaration / #import in Cocoa Touch (Objective-C cross C++) correctly?
body: <p>I am trying to write this header file:</p>
  
  <pre><code>//@class AQPlayer;
  
  //#import "AQPlayer.h"
  
  @interface AQ_PWN_iPhoneViewController : UIViewController {
  
      AQPlayer* player;
  }
  
  @end
  </code></pre>
  
  <p>AQPlayer is a .mm file written in C++.</p>
  
  <p>I tried to make a class forward declaration here, but it complains to me:</p>
  
  <p><code>
  error: cannot find interface declaration for 'AQPlayer'
  </code></p>
  
  <p>So I tried to "#import" the header file instead, but it complains something completely off and weird. Here's a slice of the error complained:</p>
  
  <p>In file included from </p>
  
  <pre><code>/Users/akaraphan/Desktop/SpecialTopic1/AQ_PWN_iPhone/Classes/AQPlayer.h:51,
                   from /Users/akaraphan/Desktop/SpecialTopic1/AQ_PWN_iPhone/Classes/AQ_PWN_iPhoneViewController.h:12,
                   from /Users/akaraphan/Desktop/SpecialTopic1/AQ_PWN_iPhone/Classes/AQ_PWN_iPhoneAppDelegate.m:10:
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CAStreamBasicDescription'
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:230: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&lt;' token
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:231: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:233: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!=' token
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:234: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&lt;=' token
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&gt;=' token
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:236: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&gt;' token
  /Developer/Examples/CoreAudio/PublicUtility/CAStreamBasicDescription.h:239: error: expected ';', ',' or ')' before '&amp;' token
  </code></pre>
  
  <p>Am I missing something? Can't I do a forward declaration for this?</p>