title: Problems setting up Ncurses and C++
body: <p>I'm fairly new to C++ and I'm trying to set up ncurses, but I can't get it to work.
  Here's the code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;ncurses.h&gt;
        int main(){
          initscr();
          printw("Hello World !!!");
          refresh();
          getch();
          endwin();
          return 0;
      }
  </code></pre>
  
  <p>With this file I get 'undefined reference' errors</p>
  
  <p>And here is the makefile:</p>
  
  <pre><code>main.o: main.cpp ncurses.h
      g++ main.cpp -o crawler -lncurses
  </code></pre>
  
  <p>The error I get with the makefile is :</p>
  
  <pre><code>make: *** No rule to make target `ncurses.h', needed by `main.o'.  Stop.
  </code></pre>
  
  <p>Thanks for your help!</p>
  
  <p>Note: I am using Ubuntu 12.04 with Geany and g++</p>