X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A221A61.2050207@cygwin.com> Date: Sun, 31 May 2009 01:49:21 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Win2k Command Window Can't Execute G++ References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 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 it 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 bring up calc, etc). However, if I > now try to invoke g++ from a CMD window I get 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\bin' or equivalent to your Windows PATH environment variable. You can do so using the "System" applet from the "Control Panel". -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/