This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: make with g++
- From: Fitzy <lugtug at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 8 Dec 2011 09:37:32 -0700
- Subject: Re: make with g++
>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