title: Obj-C not compiling?
body: <p>In Xcode, I made a C++ project. Later, I thought I'd try to learn Obj-C. I renamed the file from 'main.cpp' to 'main.m'. </p>
  
  <p>I provided the following code:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  int main (int argc, const char * argv[])
  {
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
      NSLog(@"Programming is fun!");
  
      [pool drain];
  
      return 0;
  }
  </code></pre>
  
  <p>I compiled, and got the following:</p>
  
  <p>"_objc_msgSend", referenced from:</p>
  
  <p>"_NSLog", referenced from:</p>
  
  <p>"_OBJC_CLASS_$_NSAutoreleasePool", referenced from:</p>
  
  <p>"_objc_msgSend_fixup", referenced from:</p>
  
  <p>"___CFConstantStringClassReference", referenced from:</p>
  
  <p>Any idea?</p>