home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15861 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.2 KB  |  37 lines

  1. Xref: sparky comp.lang.c++:15861 gnu.g++.help:1408
  2. Newsgroups: comp.lang.c++,gnu.g++.help
  3. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!lucpum.it.luc.edu!math.luc.edu!laufer
  4. From: laufer@math.luc.edu (Konstantin Laufer)
  5. Subject: linking problem using class CursesWindow in libg++-2.2
  6. Message-ID: <1992Oct24.224709.11092@lucpum.it.luc.edu>
  7. Sender: root@lucpum.it.luc.edu (System PRIVILEGED Account)
  8. Reply-To: laufer@math.luc.edu
  9. Organization: Loyola University Chicago
  10. Date: Sat, 24 Oct 1992 22:47:09 GMT
  11. Lines: 24
  12.  
  13. I have a problem linking the following simple program using g++
  14. (2.2.2) under SunOS 4.1.2.  None of the curses-related routines are
  15. found, and an error message is produced, although everything is in the
  16. standard places.  The problem doesn't occur on the RS6000.  On the
  17. Sparc, the program is linked using the following command:
  18.  
  19.     g++ -o window window.C -lcurses -ltermcap
  20.  
  21. #include <CursesW.h>
  22.  
  23. main() {
  24.   CursesWindow* w = new CursesWindow(stdscr);
  25.   w->clear();
  26.   w->move(5,5);
  27.   w->addstr("bubububu");
  28.   w->refresh();
  29.   w->mvgetch(8,8);
  30. }
  31.  
  32. Has anyone succeeded linking a program like this?  Any suggestions
  33. would be greatly appreciated, since I need this for a course.
  34.  
  35. -- 
  36. -Konstantin [laufer@math.luc.edu]
  37.