Re: Win2k Command Window Can't Execute G++

2009-06-01 Thread Roger Head
Alexey Borzenkov snaury at gmail.com writes:

 As an alternative you can try looking into my
 http://git.kitsu.ru/mine/shell-wrapper.git (use snapshot link for
 topmost commit if you don't have git and don't know how to clone)
 

Thanks Alexey, I'll have a look.

Roger




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



Re: Win2k Command Window Can't Execute G++

2009-05-31 Thread Roger Head
Larry Hall (Cygwin reply-to-list-only-lh at cygwin.com writes:

 
 Roger Head wrote:
  Hi All,

  Cygwin installation I had to manually add \Cygwin\bin and \Cygwin\usr\bin 
to the PATH. That hasn't been altered.  

 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.
 

Roger Head rlincolnh at yahoo.com writes:
Errr, yeah, thanks for the reply Larry, but as you see in my last para. I've 
already done that right from the start. My system is actually on L:, so my PATH 
has L:\Cygwin\bin and L:\Cygwin\usr\bin

Roger
 




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



Re: Win2k Command Window Can't Execute G++

2009-05-31 Thread Roger Head
Matt Wozniski godlygeek at gmail.com writes:

 
 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
 

Thanks for the reply, Matt. I don't have a really good idea of how Cygwin and 
Windows are both supposed to be able to handle .LNKs to e.g. G++, but a dump of 
g++.exe.lnk shows strings for /etc/alternatives and L:\cygwin\etc\alternatives. 
So yes, I don't know if Windows is supposed to be able follow that, but as I 
said in my original post, I'm almost certain that I was able to invoke it from 
a CMD window. The reason that I tried that at the time was because I was using 
a set of pages that appeared to give me good idea of how an installation should 
go - remember, I don't speak unix/linux at all - and it was illustrated there. 
The link to installing GCC that I was looking at is

http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/cygwin/part2/

That was directed specifically to XP, but it was a good enough beginners guide 
for Win2k.

I'm sure that I can come up with a hack that will let me do what I want, but I 
wouldn't have thought it would be necessary.

Roger


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



Re: Win2k Command Window Can't Execute G++

2009-05-31 Thread Roger Head
Hi Andy,
 
  I'm almost certain that I was able to invoke it from a CMD window.
 
 Afaik, gcc and g++ changed into links only recently, to help with the
 transition from gcc-3.4 to 4.3.


There are still some remnants of AVR-GCC hanging around on my system from a few 
years ago. Maybe a connection there... ...somehow.
 
  I'm sure that I can come up with a hack that will let me do what I want
 
 The easiest thing to do would be to overwrite the link with the file
 it points to, e.g. 'cp /bin/g++-4.exe /bin/g++.exe'. You'd have to
 remember to do that after every gcc update though.
 

Yeah, I'd have to automate it. I've just about given up on writing notes to 
myself, because when the time comes that I need them, I've forgotten that I 
ever wrote them in the first place! The joys of advancing years...

Roger
 





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



Re: Win2k Command Window Can't Execute G++

2009-05-31 Thread Roger Head
Dave Korn dave.korn.cygwin at googlemail.com writes:

   How about just typing g++-4 (or g++-3) instead of g++ when trying to
 invoke the compiler from a DOS shell?
 
 cheers,
   DaveK
 
 
U... e no, no, that's too easy. There must be a harder way to do it.

Thanks Dave.

Roger




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



Win2k Command Window Can't Execute G++

2009-05-30 Thread Roger Head
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.

Roger



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