all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bvraghav@iitk.ac.in (B.V. Raghav)
To: Edward Zacharek <zacharekedward@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Compilation in C and ADA
Date: Tue, 19 Jul 2016 23:06:11 +0530	[thread overview]
Message-ID: <87shv5sf78.fsf@ram.bvr.dp.lan> (raw)
In-Reply-To: <CAMOzxRce9WgjtOrWy3Oq1Gg-eCO-J6M+eDm4bNMEbJEVNpoCGw@mail.gmail.com> (Edward Zacharek's message of "Tue, 19 Jul 2016 14:11:59 +0300")

Edward Zacharek <zacharekedward@gmail.com> writes:

> In order to compile the adb file, I click on tools->compile, and press on
> "enter", and this is the error message that I receive:
> "make -k
`make -k' is a shell command that shall be run by emacs and the output
`rendered' in a compilation buffer. What you require is to clear this in
the `minibuffer', using `C-a C-k', and enter something like:

gnatmake hello.adb

or whatever be the filename instead of hello.adb

You might probably be looking for "gnatmake " to be there in the
minibuffer instead of "make -k" everytime you compile ".adb" file.
(use `C-h v compile-command') or package `SmartCompile' or more...
https://www.emacswiki.org/emacs/CompileCommand

> As for a C file, this is what I get:
>
> "make -k
Here the command might be like "gcc hello_dolly.cpp"
You might be interested in automating the compile process for
c-project(s), in which case, google is the best friend
https://www.gnu.org/software/make/ or
https://cmake.org/ or
http://www.boost.org/build/tutorial.html#basic_tasks

In either of these cases, just customize the variable `compile-command'



Best

-- 
(B.V. Raghav)
Ph.D. Student,
Design Programme, IIT Kanpur



  reply	other threads:[~2016-07-19 17:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19 11:11 Compilation in C and ADA Edward Zacharek
2016-07-19 17:36 ` B.V. Raghav [this message]
2016-07-20  2:50   ` Francis Belliveau
2016-07-20  4:30     ` B.V. Raghav
2016-07-23 14:22       ` Francis Belliveau
2016-07-23 17:52         ` Dale Snell
     [not found]         ` <mailman.1937.1469296394.26859.help-gnu-emacs@gnu.org>
2016-07-23 20:08           ` Emanuel Berg
     [not found]       ` <mailman.1922.1469283823.26859.help-gnu-emacs@gnu.org>
2016-07-23 15:05         ` Emanuel Berg
2016-07-24  4:20           ` Francis Belliveau
     [not found]           ` <mailman.1955.1469334108.26859.help-gnu-emacs@gnu.org>
2016-07-24 12:48             ` Emanuel Berg
2016-07-23 16:23 ` Kendall Shaw
     [not found] <mailman.1680.1468936015.26859.help-gnu-emacs@gnu.org>
2016-07-20  3:43 ` Rusi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87shv5sf78.fsf@ram.bvr.dp.lan \
    --to=bvraghav@iitk.ac.in \
    --cc=help-gnu-emacs@gnu.org \
    --cc=zacharekedward@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.