Date: Wed, 1 Mar 1995 02:12:06 -0400 (AST) From: Bill Davidson Subject: Re: Problems with simple fstream program To: djgpp AT sun DOT soe DOT clarkson DOT edu I got a response to my question (love this list!), as follows: On Tue, 28 Feb 1995, Steve Salter (519) 452-4447 wrote: > Bill, > > I spoke with someone who know C++ much better than I do, and he says that the > program is valid and should work. We successfully compiled and ran it under > Borland C++ but I am unable to get it to run when compiled by gcc. > > I got and compiled the libiostream library for debugging and followed the call > to infile.get(one_char). Unfortunately, the error occurred in a deeply buried > function which I didn't trace into (the function call is "_strbuf->sbumpc()". > This translates into a call to _IO_getc(this). > > Anyway, I have to do _some_ real work today, but will try again tomorrow to > follow this further unless someone else solves it. OK, so the tutorial is right and gpp is wrong. Is this a djgpp problem or a GNU problem, or does it have to do with dialect differences, or what? It seems like the code is vanilla C++ and should work, so I am a little more confident of the propriety of posting my question to this list! This is simple stuff, and if it doesn't work then I don't have a lot of confidence in the whole djgpp C++ package (the C part works great, though!). Steve: Thanks a million, I may eventually get to lesson two!! Bill Davidson bdavidson AT ra DOT isisnet DOT com