Mail Archives: djgpp/2000/01/10/10:57:15
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 -