title: Unity3D Openfeint Xcode 4.1 C++ headers compiled as C
body: <p>I am trying to integrate the openfeint unity plugin into our game, 
  I got the xCode project, followed the steps from <a href="http://support.openfeint.com/dev/example-integrating-ofunity-for-ios-with-unity/" rel="nofollow">Openfeint Support Page</a> but when trying to compile the proiect openfeint's header files are compiled as C files not as C++.</p>
  
  <p>I tried almost everything without cuccess. I added the -ObjC build flag,
  and GCC_OBJC_CALL_CXX_CDTORS = YES in the setting of GCC .</p>
  
  <p>Any ideas what went wrong?
  P.S. I also get the error message from Openfeint.h:</p>
  
  <pre><code> #ifndef __cplusplus
  #error "OpenFeint requires Objective-C++. In XCode, you can enable this by changing your file's extension to .mm" #endif 
  </code></pre>
  
  <p>Thanks in advance</p>