title: ncurses compiling: 'stdscr'/lib64/libtinfo.so.6: error adding symbol
body: <p>I'm trying to compile anything using <code>ncurses</code> and I have some sort of linking error. Why? Thanks in advance for your help.</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;ncurses.h&gt;
  
  int main(void)
  {
      initscr();
      printw("Hello World!!");
      refresh();
      getch();
      endwin();
  
      return 0;
  }
  
  lore% gcc -o helloworld helloworld.c  -lncurses
  /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/cc37p6Qp.o: un
  defined reference to symbol 'stdscr' /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
  collect2: error: ld returned 1 exit status
  </code></pre>