关于Cygwin的GCC与MinGW共存 [英] GCC on Cygwin coexisting with MinGW

查看:139
本文介绍了关于Cygwin的GCC与MinGW共存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能有两个版本的GCC可以共存:本机Windows MinGW版本和cygwin linux版本?当在Cygwin上,系统尝试使用MinGW版本的GCC进行编译时,事情就会成问题,反之亦然.如何保留两个版本的GCC?

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 compile with the MinGW version of GCC, and vice versa. How can I keep both versions of GCC?

推荐答案

精神调试建议您在全局路径中包含一个或两个.删除两者的全局路径(gcc应该会产生错误的命令或文件名"或直接从cmd.exe运行的类似内容)并设置快捷方式,以便它们为每种方式加载正确的环境.

Psychic debugging suggests you have one or both in your global path. Take both out of your global path (gcc should yield "bad command or file name" or similar run directly from cmd.exe) and set up the shortcuts so they load the proper environment for each.

这篇关于关于Cygwin的GCC与MinGW共存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆