From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Compilation in C and ADA Date: Tue, 19 Jul 2016 20:43:15 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468986329 13913 80.91.229.3 (20 Jul 2016 03:45:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 03:45:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 20 05:45:29 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 1bPiRr-0002mS-QY for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jul 2016 05:45:27 +0200 Original-Received: from localhost ([::1]:60382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPiRq-00028H-Sq for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2016 23:45:26 -0400 X-Received: by 10.159.33.177 with SMTP id 46mr34764920uac.2.1468986196455; Tue, 19 Jul 2016 20:43:16 -0700 (PDT) X-Received: by 10.36.6.141 with SMTP id 135mr193153itv.0.1468986196381; Tue, 19 Jul 2016 20:43:16 -0700 (PDT) Original-Path: usenet.stanford.edu!j37no3384124qta.0!news-out.google.com!d130ni8443ith.0!nntp.google.com!f6no2816079ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=175.100.141.245; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 175.100.141.245 User-Agent: G2/1.0 Injection-Date: Wed, 20 Jul 2016 03:43:16 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218585 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:110896 Archived-At: On Tuesday, July 19, 2016 at 7:16:58 PM UTC+5:30, Edward Zacharek wrote: > Hello, >=20 > I tried to compile two files, one in ADA, the other in C, and both have > failed. >=20 > The ADA file was a simple one, a basic "Hello World" code, which I found > over here: > https://gcc.gnu.org/onlinedocs/gnat_ugn/Running-a-Simple-Ada-Program.html >=20 > 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. >=20 > Compilation exited abnormally with code 2 at Tue Jul 19 14:10:18". >=20 > As for a C file, this is what I get: >=20 > "make -k > make: *** No targets specified and no makefile found. Stop. >=20 > 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. >=20 > Can you please help me out? This is not really an emacs question -- which is ok in general. In this case it would be better if you followed the instructions of the lin= k you gave and run: gcc -c hello.adb after the prompt ($) as indicated. ie run it in a shell Once you do that and it runs making it run in emacs is a small thing If it doesn=E2=80=99t, solving that has nothing to do with emacs