Date: Tue, 17 Mar 1998 18:34:26 -0800 (PST) Message-Id: <199803180234.SAA02892@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: kraken AT mbox3 DOT singnet DOT com DOT sg DOT nospam (Rory), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: help needed, cannot exec CPP Precedence: bulk At 04:05 3/17/1998 GMT, Rory wrote: >i've already had a little problem with my Hello world! test program. >i wanted the user screen not to disappear after ending so i added a >getch() at the end. this erases my Hello world like i just did a >clrscr(). so i tried again with > >printf("hello world!\n"); >printf("press y to quit"); >scanf("%c", &ch); >printf("bye"); >getch(); > >after pressing y and , 'bye' doesn't get printed out. getch() >seems to clear the text on the line of the current cursor. weird. >so anyway, once again, thanks for getting me going with djgpp! >much appreciated. later...... See FAQ section 9.4. Short answer: Add a '\n' to the "bye", or call `fflush(stdout)' before `getch'. Nate Eldredge eldredge AT ap DOT net fairly simple. By looking at the Allegro >> sources, you can probably write your own with minimal trouble. The grabber >> source could help, too. >What do you mean... "Look at the sources."? Just that. You have the Allegro sources (or can get them), so you can see how datafiles are implemented. Once you know the format, you can write your own program to create them. The same goes from `grabber', and since it actually does creation of datafiles, it might help even more. I think the source files you want are `src/datafile.c', `tools/grabber.c', and maybe `src/file.c'. (This goes for Allegro 2.2, anyway.) Nate Eldredge eldredge AT ap DOT net x (Slackware 3.2). I used Binutils 2.7.0.9 (a version specially patched for Linux) because I had it handy; it seems to work fine. Oh yeah, one note: I think GCC might expect to be built with `cc'. If so, just symlink `gcc' to `cc' and it works. $ ls djcrx201.zip gcc-2.7.2.1.tar.gz binutils-2.7.0.9.tar.gz $ unzip -a djcrx201.zip # The `-a' is important! $ ln -s cross/* . # These files belong in the top-level dir. $ emacs makefile # Edit per install file $ tar xzf binutils-2.7.0.9.tar.gz $ mv binutils-2.7.0.9 binutils-2.7 # To keep makefile happy. $ tar xzf gcc-2.7.2.1.tar.gz $ patch