GCC on Cygwin coexisting with MinGW

前端 未结 5 1082
Happy的楠姐
Happy的楠姐 2021-02-04 18:58

It is possible to have two versions of GCC to coexist: the native windows MinGW version and the cygwin linux version? Things get problematic when on Cygwin the system tries to c

5条回答
  •  不思量自难忘°
    2021-02-04 19:46

    Take both out of global path. Then create a new *.cmd file with the following (takes Cygwin as example):

    @echo off
    rem file: start cmd with cygwin's path
    cmd.exe  /k path=C:\cygwin\bin;%path%
    

    You can type path in the command window to check.

    Now you can work with cygwin. The environment only be valid within the cmd.exe.

提交回复
热议问题