From: "Pavlos" Newsgroups: comp.os.msdos.djgpp Subject: Re: Code split Date: Mon, 19 Jul 1999 06:15:10 +0300 Organization: An OTEnet S.A. customer Lines: 51 Message-ID: <7mu56l$9u7$1@newssrv.otenet.gr> References: NNTP-Posting-Host: dram-a06.otenet.gr X-Trace: newssrv.otenet.gr 932354069 10183 195.167.113.229 (19 Jul 1999 03:14:29 GMT) X-Complaints-To: abuse AT otenet DOT gr NNTP-Posting-Date: 19 Jul 1999 03:14:29 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 >#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). >