From: NOSPAMsl AT psycode DOT com (Gili) Newsgroups: comp.os.msdos.djgpp Subject: Re: help! c++ in djgpp acting weird Date: 20 Feb 1998 21:35:41 GMT Organization: Generation.NET Lines: 26 Message-ID: References: <34EB68DA DOT 5969 AT wpi DOT edu> Reply-To: NOSPAMsl AT psycode DOT com NNTP-Posting-Host: portA55.Generation.NET Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 18 Feb 1998 23:03:54, chris doty wrote: > Using DJGPP (with RHIDE)to write c I don't get any problems, but when I > try to do c++ lots of strange things start happening. > When single-stepping through my program, I can step into outportb. This > brings my cursor to some point in the middle of some routine of mine > where it steps through a few lines, then jumps back. Neither where it > jumps to nor where it jumps back are on any curly braces. Further-more, > where it crashes depends upon which variables I'm watching. > I have reproduced the stepping into outportb on another machine, but > haven't gotten around to checking if the crashes at different points > also happens on other machines. I find that errors of this sort > consistently plague all c++ code I write on my machine. > Am I doing something wrong? Is djgpp or rhide buggy? Help! > -chris dh I found (the hard way) that DJGPP comes with GCC 2.7.2.1 which is VERY outdated... DJGPP does C, GCC does C++.. However, GCC is buggy (and RHIDE has problems with some C++ code as well.) I am currently using PGCC which has been released for DOS and runs MUCH nicer than the GCC version provided with DJGPP.. Also, I find that GCC development is way too slow so I decided to write my own String, File, LList libraries. If you are interested in help or have any more questions, feel free to contact me. Gili