title: Why is curses on linux giving me following error?
body: <p>Trying to get getch() working to capture key press.</p>
  
  <pre><code>    #include &lt;curses.h&gt;
      ...
      ...
      WINDOW *w;
      char f;
  
     w = initscr();
     timeout(3000);
     f = getch();
     endwin();
  </code></pre>
  
  <p>is giving me following error:-</p>
  
  <pre><code>undefined reference to `wgetch'
  undefined reference to `stdscr'
  </code></pre>