Subject: c++/curses shared lib
To: MacBSD Mailing List <port-mac68k@NetBSD.ORG>
From: David Bushong <dbushong@cory.EECS.Berkeley.EDU>
List: port-mac68k
Date: 12/19/1996 02:49:58
OK, the last couple months (since I installed 1.2), various apps have been
mysteriously failing to run with a strange error.  I finally tracked down
the commonality: c++.

% cat > foo.cc
#include <iostream.h>

int main() {
  cout << "Hello, world!" << endl;
}
^D
% g++ -Wall -o foo foo.cc
% ./foo
/usr/libexec/ld.so: Undefined symbol "_tgetstr" in foo:/usr/lib/libcurses.so.2.1
%

Errh?  What does curses have to do with a basic c++ problem?  Why is the
shared lib missing functions?  Anyone?

    _/_/_/_/  _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
     _/   _/ _/   _/ _/   _/  David P. Bushong -- (510) 845-3271         _/
    _/   _/ _/_/_/  _/_/_/   dbushong@cory.eecs.berkeley.edu            _/
   _/   _/ _/      _/   _/  http://www-inst.eecs.berkeley.edu/~dbushong_/
_/_/_/_/_/_/      _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/