title: Building HelloWorld C++ Program in Linux with ncurses
body: <p>I successfully ran <code>sudo apt-get install libncurses5-dev</code></p>
  
  <p>Within my Eclipse window I then try to build the following <code>HelloWord.cpp</code> program:</p>
  
  <pre><code>#include &lt;ncurses.h&gt;
  
  int main()
  {
      initscr();                 /* Start curses mode     */
      printw("Hello World !!!"); /* Print Hello World    */
      refresh();                 /* Print it on to the real screen */
      getch();                   /* Wait for user input */
      endwin();                  /* End curses mode    */
  
      return 0;
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Invoking: GCC C++ Linker
  g++ -m32 -lncurses -L/opt/lib -o "Test_V"  ./src/curseTest.o ./src/trajectory.o ./src/xJus-epos.o   -lEposCmd
  /usr/bin/ld: cannot find -lncurses
  collect2: error: ld returned 1 exit status
  make: *** [Test_V] Error 1
  </code></pre>
  
  <p>It looks like the compiler is searching for the ncurses library and can't find it? I checked <code>/usr/lib</code> and the library does not exist there so do I need to manually link the ncurses library there -  I thought the get-apt installer would automatically do this?</p>