delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/08/11:01:35

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: <CAKfLWNrb7uyXGy3BXY86Gah+Tvnn6ybTe8jwcc2A4JuD2AerSw@mail.gmail.com>
References: <CAKfLWNrb7uyXGy3BXY86Gah+Tvnn6ybTe8jwcc2A4JuD2AerSw AT mail DOT gmail DOT com>
Date: Thu, 8 Dec 2011 17:01:07 +0100
Message-ID: <CAEhDDbBogDbF0rzfG=-rxZFYVizGa2vwUGD1Bk6d4xoo_Jb1nQ@mail.gmail.com>
Subject: Re: make with g++
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019