title: How to allocate a new object without Foundation?
body: <p>I want to construct a simple Objective C program without Foundation. I tried:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  @interface Foo{
      char * bar;
  }
  -(void)hello;
  @end
  
  @implementation Foo
  -(void)hello {
      printf("Hello world!");
  }
  @end
  
  int main(){
      Foo * foo = [Foo alloc];
      return 0;
  }
  </code></pre>
  
  <p>Then it tells me <code>Foo may not respond to +alloc</code> and <code>autorelease called without pool</code>...</p>
  
  <p>How can I initialize an object without using <code>alloc</code> from Foundation?</p>