From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bvraghav@iitk.ac.in (B.V. Raghav) Newsgroups: gmane.emacs.help Subject: Re: Compilation in C and ADA Date: Tue, 19 Jul 2016 23:06:11 +0530 Organization: Indian Institute of Technology, Kanpur Message-ID: <87shv5sf78.fsf@ram.bvr.dp.lan> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468950838 9937 80.91.229.3 (19 Jul 2016 17:53:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2016 17:53:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Edward Zacharek Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 19 19:53:42 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bPZD7-00044b-Cz for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2016 19:53:37 +0200 Original-Received: from localhost ([::1]:57630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPZD6-0004KZ-H0 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2016 13:53:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPYwb-0008Nq-MB for help-gnu-emacs@gnu.org; Tue, 19 Jul 2016 13:36:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPYwX-0005j5-GW for help-gnu-emacs@gnu.org; Tue, 19 Jul 2016 13:36:32 -0400 Original-Received: from mail2.iitk.ac.in ([202.3.77.186]:44385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPYwX-0005fQ-2j for help-gnu-emacs@gnu.org; Tue, 19 Jul 2016 13:36:29 -0400 Original-Received: from smtp.cc.iitk.ac.in (smtp.cc.iitk.ac.in [172.31.1.22]) by mail2.iitk.ac.in (Postfix) with ESMTP id B355310001C2; Tue, 19 Jul 2016 23:06:11 +0530 (IST) Original-Received: from ram.bvr.dp.lan.iitk.ac.in (unknown [172.20.240.119]) (Authenticated sender: bvraghav) by smtp.cc.iitk.ac.in (Postfix) with ESMTPA id B05A048; Tue, 19 Jul 2016 23:06:11 +0530 (IST) In-Reply-To: (Edward Zacharek's message of "Tue, 19 Jul 2016 14:11:59 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 202.3.77.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110893 Archived-At: Edward Zacharek 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