From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: Compile mode in emacs!! Date: Wed, 28 Mar 2007 09:18:44 -0400 Message-ID: <460bbac2$1@news.greennet.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175089133 19199 80.91.229.12 (28 Mar 2007 13:38:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 13:38:53 +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 Mar 28 15:38:46 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWYML-0007cJ-H5 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 15:38:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWYOo-00057U-76 for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 08:41:14 -0500 User-Agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-NNTP-Posting-Host: 192.91.197.52 X-Original-NNTP-Posting-Host: 192.91.197.52 Original-X-Trace: 29 Mar 2007 08:10:26 -0500, 192.91.197.52 Original-Lines: 6 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!nntpserver.com!zeus.nntpserver.com!newspeer1.nwr.nac.net!feedme.ziplink.net!news.greennet.net!192.91.197.52 Original-Xref: shelby.stanford.edu gnu.emacs.help:146637 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42241 Archived-At: elxsian@gmail.com wrote: > When I try to use the compile mode in emacs, it picks up the default gcc (/usr/bin/gcc). I need it to pick the gcc in a different location. How do I do that? I tried sourcing the path from the compile mode, but did not help. IMHO, the best approach is to learn how to use make. Then let emacs do the default (run make) and put details like paths, command line options, etc., in the makefile.