jaa@hutcs.hut.fi (Jari Alasuvanto) (07/27/89)
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