Mail Archives: djgpp/1998/08/20/06:15:30
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?
- Raw text -