delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/31/03:11:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4A221A61.2050207@cygwin.com>
References: <loom DOT 20090531T045341-42 AT post DOT gmane DOT org> <4A221A61 DOT 2050207 AT cygwin DOT com>
Date: Sun, 31 May 2009 03:11:11 -0400
Message-ID: <17393e3e0905310011i3b6bd318ud323d64a9fe3581b@mail.gmail.com>
Subject: Re: Win2k Command Window Can't Execute G++
From: Matt Wozniski <godlygeek AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

On Sun, May 31, 2009 at 1:49 AM, Larry Hall wrote:
> Roger Head wrote:
>>
>> Hi All,
>>
>> I'm a noob to Cygwin and all things non-Windows. I installed Cygwin on my
>> Win2k system (a couple of hiccups, but nothing major), then installed the
>> GCC. When that completed, I did g++ -v in a bash window, and got the
>> expected response. I am *sure* (99% anyway) that I was also able to do i=
t in
>> a normal CMD window amd get the identical response. I then proceeded to
>> install X-Windows with no problems, and it appears to work (i.e. can bri=
ng
>> up calc, etc). However, if I now try to invoke g++ from a CMD window I g=
et
>> the usual message '... not recognized as an internal or external command
>> ...blah blah blah'. It still works in a bash window.
>>
>> Am I dreaming that I was able to use it in a CMD window before installing
>> X Windows, or has something been changed during that installation? If so,
>> what?
>>
>> I have done all the above while logged on as Administrator. After the
>> initial Cygwin installation I had to manually add \Cygwin\bin and
>> \Cygwin\usr\bin to the PATH. That hasn't been altered. It doesn't matter
>> what directory I am in when using the CMD window, g++ isn't recognized.
>>
>> I would sure appreciate some help.
>
> If you want Windows applications to be able to see Cygwin apps without
> adding explicit paths to the invocation, you'll need to add 'C:\cygwin\bi=
n'
> or equivalent to your Windows PATH environment variable. =C2=A0You can do=
 so
> using the "System" applet from the "Control Panel".

Don't have a cygwin install in front of me ATM, but - isn't g++ a
cygwin symlink these days?  cmd.exe can't follow those even if they're
in the path, of course.

~Matt

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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