Cygwin: How to actually use gcc-mingw

前端 未结 4 2075
走了就别回头了
走了就别回头了 2020-12-23 09:33

Since \"gcc -mno-cygwin\" does not work anymore, I was looking for a way to get a MinGW-targeted GCC running within my Cygwin environment. (Running a MSYS environment is not

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 10:33

    After installing the MingW g++ package for Cygwin (mingw64-x86_64-gcc-g++), I also struggled to figure out how to invoke it.

    Thanks to this wiki, I found out the command was x86_64-w64-mingw32-g++. Then I did alias g++='x86_64-w64-mingw32-g++' and g++ started working as expected.

提交回复
热议问题