From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Belliveau Newsgroups: gmane.emacs.help Subject: Re: Compilation in C and ADA Date: Tue, 19 Jul 2016 22:50:12 -0400 Message-ID: <4781A7A0-F110-47CC-A19D-0C9F1619FD23@comcast.net> References: <87shv5sf78.fsf@ram.bvr.dp.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468983258 7179 80.91.229.3 (20 Jul 2016 02:54:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 02:54:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "B.V. Raghav" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 20 04:54:07 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 1bPheA-0002hg-TQ for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jul 2016 04:54:07 +0200 Original-Received: from localhost ([::1]:60261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPheA-0004or-2m for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2016 22:54:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPhbf-0001Bi-0i for help-gnu-emacs@gnu.org; Tue, 19 Jul 2016 22:51:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPhba-00066s-Rh for help-gnu-emacs@gnu.org; Tue, 19 Jul 2016 22:51:29 -0400 Original-Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:50684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPhba-00065b-KL for help-gnu-emacs@gnu.org; Tue, 19 Jul 2016 22:51:26 -0400 Original-Received: from resomta-po-02v.sys.comcast.net ([96.114.154.226]) by resqmta-po-06v.sys.comcast.net with SMTP id PhaPbtivRjWBpPhaabZWBE; Wed, 20 Jul 2016 02:50:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1468983024; bh=PS2GBbxVDcS9ur71CN625HR+0a1DbccByOwcOuJzkHk=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=Q1fq/CPWHohI/mexMqa1o65ryNmpYEBrNOCUuH30kyLZSGJ9bTFIbXNImxqoSY8we KOEgpaGf/jCZOKNOJkfi2IitR6L2J7bBzm+Gk82xPL8oPISxOAnwTOHZdQlNCzUQcD +Mhy6TN43ujJmI/RfqTRf6RSbpjd03zQvuAntMaStAYVKXrL33PEMypfWejTvd+dRM +BvfZB/blVPEDED/NhjPIirVn67YPE0mYjB2MAbeO1hjsiAEE+MnxNfjUbfWK0hmPb +Fo7shDHiyc00jWhTbBmO6oKpzxnUOi2nDdbBXWE4Irv+jvcRcVVFCqnwvXXJmplLP a0XM00gzGlKPA== Original-Received: from [172.20.101.8] ([69.146.219.170]) by comcast with SMTP id PhaObcOHlEBksPhaRbqb7D; Wed, 20 Jul 2016 02:50:22 +0000 In-Reply-To: <87shv5sf78.fsf@ram.bvr.dp.lan> X-Mailer: Apple Mail (2.3124) X-CMAE-Envelope: MS4wfNJS3LPz9iGpUm1y8Fqq+xzHLb8j8JhSkFQ5/7DWZrgZ3S8wlYh4W31Toh5SBp2n+jydAi+xjq/XCgsVwB7h5Q8IOu5/YBus55FAQ9l/IxneVXesCrZI Ked0iiYZ6djp0dnOaUNxxfLUm2HlrYV8I1Ttw6N9szgcw6tX2Xs02bVC/xOv/WRJ4OyNXGBOR0HGr6M2wQuDN85x1UrSi+rpO+4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.114.154.165 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:110895 Archived-At: Although previous response described how to work around the problem, I = believe that bit of clarity expansion is needed here with regard to what = is actually happening. I am no emacs expert, but from the evidence it seems clear to me that = the emacs "compile" default is to make an entire application, not just = compile a single file or the current buffer. It has been a long time since I used Ada, so I cannot speak to how Ada = applications are built these days, but I expect "make" can be used to do = it. However, both C and C++ developers commonly use make, or one of its many = flavors, to describe the dependancies between application sources and = how to build the applications. Normally when you compile a C file you = get an object file, not an executable program. All the objects for the = project, just the one in this case, then need to be linked with the = appropriate set of libraries in order to create the program executable. = Again this is just a simple system library in the case of a "hello" = application. Since I do not use the menus either, I do not know what the various = choices are. =20 However, this sounds to me like a "Human Factors" ambiguity problem. =20 Either the default for "compile" should be to execute "gcc" rather than = "make", or the menu command "compile" should be changed to something = like "make app".