home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:15861 gnu.g++.help:1408
- Newsgroups: comp.lang.c++,gnu.g++.help
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!linac!uchinews!lucpum.it.luc.edu!math.luc.edu!laufer
- From: laufer@math.luc.edu (Konstantin Laufer)
- Subject: linking problem using class CursesWindow in libg++-2.2
- Message-ID: <1992Oct24.224709.11092@lucpum.it.luc.edu>
- Sender: root@lucpum.it.luc.edu (System PRIVILEGED Account)
- Reply-To: laufer@math.luc.edu
- Organization: Loyola University Chicago
- Date: Sat, 24 Oct 1992 22:47:09 GMT
- Lines: 24
-
- I have a problem linking the following simple program using g++
- (2.2.2) under SunOS 4.1.2. None of the curses-related routines are
- found, and an error message is produced, although everything is in the
- standard places. The problem doesn't occur on the RS6000. On the
- Sparc, the program is linked using the following command:
-
- g++ -o window window.C -lcurses -ltermcap
-
- #include <CursesW.h>
-
- main() {
- CursesWindow* w = new CursesWindow(stdscr);
- w->clear();
- w->move(5,5);
- w->addstr("bubububu");
- w->refresh();
- w->mvgetch(8,8);
- }
-
- Has anyone succeeded linking a program like this? Any suggestions
- would be greatly appreciated, since I need this for a course.
-
- --
- -Konstantin [laufer@math.luc.edu]
-