From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kendall Shaw Newsgroups: gmane.emacs.help Subject: Re: Compilation in C and ADA Date: Sat, 23 Jul 2016 09:23:21 -0700 Message-ID: <2dfd3076-e48f-da96-69dd-c08e22cad428@kendallshaw.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1469291044 27401 80.91.229.3 (23 Jul 2016 16:24:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2016 16:24:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 18:23:55 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 1bQziU-00021j-Us for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2016 18:23:55 +0200 Original-Received: from localhost ([::1]:52932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQziT-0005kB-Vy for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2016 12:23:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQzi6-0005k6-AT for help-gnu-emacs@gnu.org; Sat, 23 Jul 2016 12:23:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQzi2-0003tr-40 for help-gnu-emacs@gnu.org; Sat, 23 Jul 2016 12:23:29 -0400 Original-Received: from d.mail.sonic.net ([64.142.111.50]:45196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQzi1-0003sj-S0 for help-gnu-emacs@gnu.org; Sat, 23 Jul 2016 12:23:26 -0400 Original-Received: from kitsune-ko.localdomain (108-64-77-57.lightspeed.sntcca.sbcglobal.net [108.64.77.57]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u6NGNLni017515 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 23 Jul 2016 09:23:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: X-Sonic-CAuth: UmFuZG9tSVbfBdPJWFvTLlc5KCIEMJipzl4O9CmvsXCJ0fiVw5QLchXGfGC1Hl+i1Kf7dnpAzM3VNsTNtP2YY9VHPlwREeZK X-Sonic-ID: C;8u+qxfFQ5hGoF5NwxPCmMQ== M;ftj5xfFQ5hGoF5NwxPCmMQ== X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 64.142.111.50 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:110910 Archived-At: On 07/19/2016 04:11 AM, Edward Zacharek wrote: > 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: *** No targets specified and no makefile found. Stop. > > Compilation exited abnormally with code 2 at Tue Jul 19 14:10:18". The other answers include this information, but the basic problem is that tools->compile isn't meant to be figuring out on it's own how to compile the file that is in your buffer. By default, it is looking for a make file and not finding one. So, it says so. Essentially, first figure out how to build your ada/c files from the command line, then figure out how to create a single command that does that, then have tools->compile use that command. Kendall > As for a C file, this is what I get: > > "make -k > make: *** No targets specified and no makefile found. Stop. > > Compilation exited abnormally with code 2 at Tue Jul 19 14:11:04", > So I get exactly the same error. > I think I am doing something wrong. > > Can you please help me out? > > Best Regards > Roman Edward Zacharek > >