title: Mixing Objective C ,(*.m , *.mm & .c /.cpp ) files
body: <p>In my project Core libraries are part of C/C++ files, while UI needs to be developed in Objective C, 
  I am able to access/Call C++ functions from Objective C/.mm files 
  but reverse no luck so far, i.e. i am not able to call Objective C functions from C++ Files, 
  when i tried to include Objective C header even system header </p>
  
  <pre><code>#import &lt;foundation/foundation.h&gt; 
  </code></pre>
  
  <p>getting around 1000+ compilation error, </p>
  
  <p>something like this </p>
  
  <pre><code>/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:180:0 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:180: error: expected unqualified-id before '@' token
  
  
  /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:182:0 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:182: error: expected initializer before '*' token
  
  
  /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:183:0 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:183: error: 'NSString' was not declared in this scope
  
  
  /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:183:0 /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:183: error: 'aSelectorName' was not declared in this scope
  </code></pre>
  
  <p>Am i missing some pre-compile flag etc.. 
  can anyone suggest me, the best possible way to call/access objective C class which is inherited from NSObject, without modifying much C++ code, i just need to call one function </p>
  
  <p>Code structure / Order to include header files are </p>
  
  <pre><code>Some system header file
  Some Core Class Header file 
  
  #import &lt;foundation/foundation.h&gt;
  </code></pre>