c++ - Get "Access is denied" when trying to compile with g++ from command line. Cygwin -


i have installed packages in cygwin. have added c:\cygwin\bin path variable. when try compile c++ file in command line error 'access denied'. same commands work in cygwin batch window. know what's wrong?

edit: changed permissions gcc , g++. no longer 'access denied' error, new one: "this version of c:\cygwin\bin\g++.exe not compatible version of windows you're running. check computer's system information see whether need x86 (32-bit) or x64 (64-bit) version of program, , contact software publisher.".

enter image description here

enter image description here

because c:\cygwin\bin\gcc.exe isn't executable file, it's cygwin symbolic link.

$ file /bin/gcc /bin/gcc: symbolic link `/etc/alternatives/gcc' $ file /etc/alternatives/gcc /etc/alternatives/gcc: symbolic link `/usr/bin/gcc-4.exe' 

the underlying file runs fine.

c:\cygwin\home\ben>gcc-4 --version gcc-4 (gcc) 4.5.0 copyright (c) 2010 free software foundation, inc. free software; see source copying conditions.  there no warranty; not merchantability or fitness particular purpose. 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -