delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/10/10:57:15

Date: Mon, 10 Jan 2000 12:27:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Vladimir Zotikos <vladimirz AT toad DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Help with DJGPP, Emacs, RHIDE for a beginner.
In-Reply-To: <RG2e4.3190$e%5.22632669@news-read1.qis.net>
Message-ID: <Pine.SUN.3.91.1000110122712.6643L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 9 Jan 2000, Vladimir Zotikos wrote:

> Therefore, I would like to write , compile and run programs using DJGPP and
> Emacs while avoiding the command line if possible.

To compile a program from withing Emacs, either type "M-x compile RET"
(M-x means hold the Alt key and press x), or click "Tools" on the menu
bar and choose "Compile" from the drop-down menu.  Emacs will prompt
for a "Compile command" in the bottom line (called "the minibuffer"),
the default being "make -k".  For a project where you have a Makefile,
this is a good default, but for a compilation of a single file, simply
delete "make -k" and type the compilation command as if you were
typing it at the DOS prompt.  Then press RET (that's Emacs-speak for
the Enter key), and Emacs will launch the compiler.  If there are
errors, they will be displayed in a separate window in the lower part
of the screen, and you can step through all the lines which caused
error messages by pressing "C-x `" or clicking the right mouse button
on the error message.

Once you typed the compilation command, Emacs remembers it, and will
suggest it as the default next time you invoke "M-x compile".

I suggest to read the section in the on-line manual that describes the
`compile' command.  To this end, type "C-h C-f compile RET", and read
there.  (C-h means hold the Ctrl key and press h.)

- Raw text -


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