title: Strange Compiler Error: "undefined reference to 'main'"
body: <p>Could someone tell me what this means?</p>
  
  <pre><code>/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
  (.text+0x18): undefined reference to `main'
  collect2: ld returned 1 exit status
  make: *** [program] Error 1
  </code></pre>
  
  <p>My make file looks like as follows:</p>
  
  <pre><code>program : main.o render.o screenwriter.o
      g++ -o main.o render.o screenwriter.o -lSDL
  
  main.o : main.cpp render.h screenwriter.h
      g++ -c main.cpp render.h screenwriter.h -lSDL
  
  render.o : render.h render.cpp
      g++ -c render.h render.cpp -lSDL
  
  screenwriter.o : screenwriter.h screenwriter.cpp
      g++ -c screenwriter.h screenwriter.cpp -lSDL
  
  clean:
      rm program main.o render.o screenwriter.o -lSDL
  </code></pre>
  
  <p>Thanks.</p>