X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 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 09:37:32 -0700 Message-ID: Subject: Re: make with g++ From: Fitzy 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 List-Id: 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 >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 Hi Csaba, When I run that it shows this in the cygwin console: $ make which g++ /user/bin/g++ It doesn't run g++ though, not sure if it was supposed to.. When I run the original make that I posted it shows this: $ make g++ main.cpp -o test Error: 'g++' not found I do have cygwin installed twice, the first one somehow lost track of g++(it was working and then it couldn't find g++ one day) so I installed it again(in a different location since the updater didn't seem keen on overwriting), perhaps make from my second cygwin is somehow getting confused by this? -- 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