oneill@styx.UUCP (05/02/86)
We are trying to port the c++ compiler to our BSD site and have run up
against a problem in using 'cout <<'. Namely, any program we put it in
bombs out as in the example below. Any ideas?
The program:
% more hello.c
#include <stream.h>
main() {
cout << "123Hello\n";
}
The error:
% hello
Bus error (core dumped)
The debug:
% dbx hello
dbx version 5 of 7/31/84 17:27 (tisstyx).
Type 'help' for help.
warning: core dump ignored
reading symbolic information ...
(dbx) run
bus error in _ostream__lshiftFPC__ at line 471 in file "out..c"
471 ) ) ) == -1)
(dbx) where
_ostream__lshiftFPC__(_auto_this = 0x22ec, _auto_s = "23Hello\n"), line 471 in "out..c"
main(0x1, 0x7fffee9c, 0x7fffeea4), line 4 in "hello.c"
(dbx) q