www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/30/13:59:08

Xref: news-dnh.mv.net comp.os.msdos.djgpp:2289
Path: news-dnh.mv.net!mv!news.sprintlink.net!dns.crocker.com!wizard.pn.com!Germany.EU.net!EU.net!gatech!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!mail2news.demon.co.uk!chocolat.demon.co.uk
From: Paul Shirley <PS AT chocolat DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: ios::binary
Date: Fri, 29 Sep 95 18:05:40 GMT
Organization: a loose end.
Lines: 20
Reply-To: PS AT chocolat DOT demon DOT co DOT uk
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Well, I've just been bitten again by the ios::bin v ios::binary
difference between gcc and Borland,Watcom and who knows what other
PC compilers.

My current hack is to add a new 'binary = _IOS_BIN' to streambuf.h

There must be a better way than hacking the include files. If not
could we have the alias added to any new djgcc releases?


just in case... the problem is

	ofstream afile("name",ios::bin | ios::in);

is incompatible with most PC compilers.

-- 
Paul Shirley: too lazy to change this sig.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019