delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/21:37:37

Date: Tue, 17 Mar 1998 18:34:26 -0800 (PST)
Message-Id: <199803180234.SAA02892@adit.ap.net>
Mime-Version: 1.0
To: kraken AT mbox3 DOT singnet DOT com DOT sg DOT nospam (Rory), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: help needed, cannot exec CPP

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 <enter>, '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 <patch.lib
$ make all
$ make install  # You may need to run `su' depending on where you install.

Hope this helps!

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019