Mail Archives: djgpp/1999/07/19/12:35:31
Open RHIDE, go to Project->Open, then type the name of the project you want
to create (for example fichario).
A window will pop-up at the bottom of the screen. Press INSert to add your
.C files into it. Now, you have a project.
You should remove #include "xxx.C" from your source files, leave #include
"xxx.H" only.
To add debug info, goto options->compiler->debugging and check the -g
checkbox (I think it's the first on the list).
Press F9 once to make the project.
To toggle breakpoints, press Ctrl+F8.
Press Ctrl+F9 to run the program. It will stop at the first breakpoint hit.
You can use F8 and F7 to step through the code (F8 step over, F7 step into
functions). Ctrl+F2 terminates the program abnormally.
Pavlos
marciom wrote in message ...
>hello all,
>
>I'm developing a small MS-DOS database aplication using DJGPP,
>RHIDE (and ALLEGRO as GUI) and I've decided to put the code in
>separated files by function:
>
>- fichario.c (main code)
>- dados.c (data manipulation code)
>- interface.c (interface code)
>and
>- fichario.h (needed by all above!!!).
>
>In "fichario.c" I have the following initialization:
>
>#include <allegro.h>
>#include "fichario.h"
>#include "dados.c"
>#include "interfac.c"
>
>Having split the code in different files I now just can debug
>step-by-step the code in main file "fichario.c".
>
>How do I put it all (maybe using a Project) in a way
>that I can debug/trace code in every file?
>
>I thank you masters in advance,
>Marcio
>Fortaleza, CE, Brazil
>--
>Posted via Talkway - http://www.talkway.com
>Exchange ideas on practically anything (tm).
>
- Raw text -