Get “Access is denied” when trying to compile with g++ from command line. Cygwin

后端 未结 4 1583
感动是毒
感动是毒 2020-12-15 05:08

I have installed all packages in cygwin. I have also added C:\\cygwin\\bin to my PATH variable. But when I try to compile a c++ file in command line I get the error \'Access

4条回答
  •  既然无缘
    2020-12-15 05:31

    Unless you're a masochist, always use a Cygwin batch window with Cygwin executables. Also if you're using the Cygwin compiled gcc, you'll need the Cygwin DLL to run the results. The Cygwin website explains why. If you need executables without the Cygwin dll, I'd explore MinGW.

提交回复
热议问题