From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP inconsistencies? Date: Sat, 22 Mar 1997 13:01:56 -0800 Organization: Alcyone Systems Lines: 21 Message-ID: <333448C4.746539FA@alcyone.com> References: <199703152044 DOT MAA05258 AT netcom6 DOT netcom DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Marc Singer wrote: > My hunch is that load_datafile is clobbering the stack. The char* > changes the depth of the stack and could hide the problem. Without > all of the code, I cannot say more. You could try debugging the app > and see if str changes after the load_file call. The problem was that the original poster does not understand that C and C++ are not the same thing. Probably as a fault of using Turbo C++ (which always compiles C++ unless you specifically tell it not to). Besides, stack clobbering would cause runtime errors, whereas his complaint was about compilation errors. -- Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com Alcyone Systems / web: http://www.alcyone.com/max/ San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W \ "I am become death, / destroyer of worlds." / J. Robert Oppenheimer (quoting legend)