From: Ted Larsson Newsgroups: comp.os.msdos.djgpp Subject: Re: Trouble when upgrading to gcc 2.8.1 Date: Thu, 20 Aug 1998 10:37:16 +0200 Organization: Chalmers University of Technology, Sweden Lines: 33 Message-ID: <35DBE03C.D0F3DD8E@dd.chalmers.se> References: <35D9F7ED DOT AC0455EE AT dd DOT chalmers DOT se> <6rd88r$jbr$5 AT news DOT luth DOT se> NNTP-Posting-Host: dynamic-202-51.dialup.chalmers.se 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 Precedence: bulk Martin Str|mberg wrote: > > Ted Larsson (f93tela AT dd DOT chalmers DOT se) wrote: > : * The compiler no longer recognizes the word NULL; gives an error > : message. Why? > > Eh! Are you sure you have included the right header files? No, I didn't include any files... didn't need to with the old version. What file(s) should I include? Where can I read about other changes between 2.7.2.1 and 2.8.1? > > : * I have made a linked-list template class and a test program for > : it. Stepping through the list (double-linked) only works in one > : direction when compiled with DJGPP, but in both dirs with VC++ 4.2. > : (I take that as this part of the program is correct, and something > : is wrong with DJGPP...). What should I do? Reinstall everything? > > Your program is probably incorrect as pointers (and probably doubly > linked lists) are working fine for a lot of other people. > Post some compilable code that exhibits this behaviour and why it's > wrong and somebody can probably point at your error. You're right, and I'm stupid. When I said that it works fine with VC++, I had made changes to the VC++ compiled source files, and forgot to make the same changes to the DJGPP compiled ones. Now it works :-) By the way, I haven't really figured out the gdb debugger. I really like the VC++ debugger, so I wonder, can I get gdb to display debugging info in a similar manner? Links to any tutorials?