Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!unmvax!aplcen!ginosko!uunet!mcvax!kth!draken!tut!santra!hutcs.hut.fi!jaa From: jaa@hutcs.hut.fi (Jari Alasuvanto) Newsgroups: comp.lang.c++ Subject: streams problem, sun4, designer C++ (relatively long) Message-ID: <23988@santra.UUCP> Date: 27 Jul 89 07:04:43 GMT Sender: news@santra.UUCP Reply-To: jaa@hutcs.hut.fi.UUCP (Jari Alasuvanto) Organization: Helsinki University of Technology, Finland Lines: 25 We have been using designer C++ on various machines (sun3, hp9000) for almost two years and have been relatively satisfied with the compilers. Lately we install one on our sun4 ( release 1.2 Sun4-Wk.2d (beta 1 FOR SOME REASON !!)). Then a really nasty thing turned out - ostreams which open a file do not work. The symptoms are: int fd = open (xxxxxx) // file really gets opened/created ostream* aStrm = new ostream(fd) ; // this line generates two warnings to stderr, "illegal // pointer combination", they come from the inline // constructors of filebuf and streambuf *aStrm << "Write something \n" ; close (fd) ; Only 377 is written to the file. If the stream is constructed by allocating a filebuff and then opening it, nothing is written to the file. Has anybody run into the same problem ? Any good ideas what to do ? All ideas will be appreciated. Jari Alasuvanto Lab. of Information Proc. Science, Helsinki Univ. of Techology, Finland Internet: jaa@hutcs.hut.fi Bitnet: jaa%finhutcs.bitnet tel: +358-0-451 3236 fax: +358-0-465 077