This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc not running properly??


On 6/10/2012 6:53 AM, scotty85 wrote:

I have recently installed cgywin on my windows 7 32-bit machine.


when i run the cgywin terminal i am able to show the version with the
command gcc --version however when i try and do this in command prompt
nothing is displayed.  i have set the path correctly so i don't know why
only gcc is not working as all the others in the cygwin\bin folder do.

here is an attached screenshot of the problem if it is unclear.
http://old.nabble.com/file/p33987996/gcc.jpg gcc.jpg

any help would be much appreciated.


on mintty you are clearly using a bash shell, while the command prompt is not a cygwin shell at all.

Command prompt can not follow cygwin simlink

$ which gcc
/usr/bin/gcc

$ ls -l /usr/bin/gcc
lrwxrwxrwx 1 marco None 21 Nov 13 2011 /usr/bin/gcc -> /etc/alternatives/gcc


$ ls -l /etc/alternatives/gcc
lrwxrwxrwx 1 marco None 18 Mar 31 15:31 /etc/alternatives/gcc -> /usr/bin/gcc-4.exe


Use mintty and bash.

Regards
Marco



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]