delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/12/08/10:34:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 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
Date: Thu, 8 Dec 2011 08:34:14 -0700
Message-ID: <CAKfLWNrb7uyXGy3BXY86Gah+Tvnn6ybTe8jwcc2A4JuD2AerSw@mail.gmail.com>
Subject: make with g++
From: Fitzy <lugtug 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-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

 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"

 Which doesn't make much sense to me, given that I can run g++ from
the cygwin command line just fine..


Here is one of the many makefiles I've tried..

all:
	g++ main.cpp -o test
	
.PHONY: all

Which produces the above error..

  So are all the tutorials wrong online, or does my make just not work
correctly?

Thanks

--
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