X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 8 Dec 2011 17:01:07 +0100 Message-ID: Subject: Re: make with g++ From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pB8G1WTg029057 Hi, On Thu, Dec 8, 2011 at 4:34 PM, Fitzy wrote: >  Alright so I'm a complete newbie when it comes to anything linux related. > > And so I cannot figure out how make is supposed to work under cygwin, > even creating the simplest makefile produces > > "Error: 'g++' not found" Did you actually run make? Was this the *exact message* you received? This is the error I get when I try to run a bogus program from make: make: g+++: Command not found Note that the makefile fragment you provided looks suspicious: it appears to contain seven spaces as the indentation of the g++ line, although I suspect it might have been mangled by gmail, otherwise you would have gotten a different error message from make. > >  Which doesn't make much sense to me, given that I can run g++ from > the cygwin command line just fine.. (snip) >  So are all the tutorials wrong online, or does my make just not work > correctly? It's more likely that you made a mistake somewhere or your Cygwin environment is not set up correctly. To help us diagnose the latter, please follow: > Problem reports:       http://cygwin.com/problems.html , especially http://www.cygwin.com/problems.html#cygcheck This will help us to understand what your Cygwin environment contains and how it's set up. Just for curiosity, try changing your makefile to the following and running make: all: which g++ g++ main.cpp -o test Hope this helps, Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple