Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!pesnta!amd!amdcad!lll-crg!styx!oneill From: oneill@styx.UUCP Newsgroups: net.lang.c++ Subject: BSD porting problems Message-ID: <20620@styx.UUCP> Date: Thu, 1-May-86 19:20:39 EDT Article-I.D.: styx.20620 Posted: Thu May 1 19:20:39 1986 Date-Received: Sun, 4-May-86 05:11:06 EDT References: <17755@rochester.ARPA> Organization: Lawrence Livermore Laboratory, Livermore, CA Lines: 34 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 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